The client wants a KPI card that displays Sales Performance in red if below target yellow if close and green if above target How can you achieve this in Power BI

0 votes

The client wants a KPI card that displays “Sales Performance” in red if below target, yellow if close, and green if above target. How can you achieve this in Power BI?
A client requires a KPI card that visually indicates sales performance using different colors: red for below target, yellow for near target, and green for above target. You need to create a measure that dynamically applies conditional formatting based on sales thresholds. What is the best approach using DAX and Power BI formatting options to achieve this?

6 hours ago in Power BI by Evanjalin
• 17,350 points
9 views

1 answer to this question.

0 votes

To create a KPI card with conditional formatting in Power BI, follow these steps:

  1. Create a DAX Measure for Sales Performance:

Sales Performance Status =  
IF( [Sales] < [Target] * 0.9, "Red",  
    IF( [Sales] <= [Target] * 1.1, "Yellow", "Green" )  
)
  • This measure categorizes sales as red (below 90% of target), yellow (90-110%), and green (above 110%).

  • Apply Conditional Formatting:

    • Select the KPI card visual.
    • In the Format pane, go to Data Label > Conditional Formatting and choose Font Color or Background color.
    • Use the Sales Performance Status measure to assign colors.
  • Enhance with Icons (Optional):

    • Use Conditional Formatting > Icons to display visual indicators for better clarity.
answered 6 hours ago by anonymous
• 17,350 points

Related Questions In Power BI

0 votes
0 answers
0 votes
2 answers

What is the role of composite models in Power BI, and how can they enhance performance?

Composite models in Power BI allow for ...READ MORE

answered Jan 23 in Power BI by anonymous
• 16,480 points
106 views
+1 vote
1 answer

How can you use Power Pivot in Excel to create a star schema model and integrate it with Power BI for reporting?

How Power Pivot gives optimal data models: ...READ MORE

answered Dec 2, 2024 in Power BI by pooja
• 16,480 points
118 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,509 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,860 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,520 points
1,641 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Open power bi report nd sign in ...READ MORE

answered Oct 10, 2023 in Power BI by Monika kale

edited 18 hours ago 1,781 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP