Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
This should be easy but I am stumped
I have a simple New Card visual with two values, each with an accent bar. I just want the bar one colour if the value is > 0, a different colour if its < 0
Now in Excel this would be simple, what am I missing in Power BI ?
Solved! Go to Solution.
Hi @David_F64 -If you'd like more control over the logic, you can create a measure that returns a color value based on the value of another measure
In the Visualizations pane, go to Format.>>Under Card, look for Background.>>Click the fx button next to the Background color and set your rules (similar to the Data label method).
Hope it works.
Proud to be a Super User! | |
Hi @David_F64 ,
If you are using a card visual, I recommend using the solution provided by @rajendraongole1 , which allows you to control color changes through measures. If this resolves your issue, please mark @rajendraongole1 's response as "Solved" to close this thread.
If you are considering using other visuals instead, you can achieve a similar effect by using a table visual along with conditional formatting settings.
Best Regards,
Bof
From the cards format pane, select the value you want to apply the accent bar color.
Then use fx on accent bar to apply the color rule:
Result:
Hi @David_F64 ,
If you are using a card visual, I recommend using the solution provided by @rajendraongole1 , which allows you to control color changes through measures. If this resolves your issue, please mark @rajendraongole1 's response as "Solved" to close this thread.
If you are considering using other visuals instead, you can achieve a similar effect by using a table visual along with conditional formatting settings.
Best Regards,
Bof
Hi @David_F64 -If you'd like more control over the logic, you can create a measure that returns a color value based on the value of another measure
In the Visualizations pane, go to Format.>>Under Card, look for Background.>>Click the fx button next to the Background color and set your rules (similar to the Data label method).
Hope it works.
Proud to be a Super User! | |
User | Count |
---|---|
75 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |