Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
I have prepared a dashboard wherein a small issue noticed during conditinal formatting
The YTD(92.20%) number supposed to be in green as its avboe the target(92.08%) and the gap also be in green.
Surprisingly, the same conditinal formatting i have applied on the table. it is showing correct color coading as green
Can someone pls help me to understand the issue.
Hi @hasharma19 ,
Firstly if you are using Card visual I think you can just choose to change the font color manually.
Secondly if you are coloring in a table or matrix, you can create a Measure to adjust the desired background color.
Measure = IF(MAX('Table'[IN])<0.92,"Red","Green")
So you can get what you want.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@rit_ty7 @Anonymous @danextian @Below are the measures i have applied on the cards
YTD Perf% measure
Current Month Perf%
Gap from target%
below are the measure applied on the table
background
Fornt
Not able to find any option to upload the PBI File
Hi @hasharma19 ,
To apply the same color logic you used in the conditional formatting of the cell element to the card's background or font, you can use the same example_Color_measure in a similar way. Here's how:
Test_color = IF( SUM(FACT_SALES_S3_ALL_FILTER[BILLED_QUANTITY]) < 17000000, "#36dfcf", "#ffffff" )
Now, your card's background or font color will dynamically change based on the logic defined in Test_color.
This approach ensures consistency between the conditional formatting in your matrix or table visuals and the card visual.
Select field value and select the color measure
for text's conditional formatting, go to callout value's color and use the given measure
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Ritesh Kumar,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hasharma19
Is the highglighted a dimension or measures?
What is your conditional formatting logic/condition/measure? What is target if added together with YTD Profit in the same visual?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
55 | |
55 | |
38 | |
29 |
User | Count |
---|---|
78 | |
62 | |
45 | |
40 | |
40 |