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.
Hi all,
I want to apply conditional formatting to blank values in a matrix.
"AcitivityDurationHrs" is in a matrix and I have set up conditional formatting based on field value "ReportingBackgroundColor"
However it only applies colours where there is a value in "ActivityDurationHrs".
How am I able to do this?
Solved! Go to Solution.
Hi @henrys1995 ,
If you do not want to hardcode the color as @amitchandak mentioned,
Below are my workarounds.
1. Apply the following measure to Values field in Matrix as well:
Measure = MAX('Table'[ReportingBackgroundColor])
Please see the details:
2. Apply Font color as well as Background color:
Sum Hrs = SUM('Table'[AcitivityDurationHrs])+0
Font Color = IF([Sum Hrs]=0,MAX('Table'[ReportingBackgroundColor]),"Black")
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @henrys1995 ,
If you do not want to hardcode the color as @amitchandak mentioned,
Below are my workarounds.
1. Apply the following measure to Values field in Matrix as well:
Measure = MAX('Table'[ReportingBackgroundColor])
Please see the details:
2. Apply Font color as well as Background color:
Sum Hrs = SUM('Table'[AcitivityDurationHrs])+0
Font Color = IF([Sum Hrs]=0,MAX('Table'[ReportingBackgroundColor]),"Black")
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@henrys1995 , Only in Gradient conditional formatting, you have an option. For the Field Value, You have to try by adding +0 to the measure and returning a color for 0 value
Switch(True() ,
[Measure] = 0, "Red",
[Measure] < 10, "Yellow",
"Green'
)
where Measure = sum(Table[Value])+0
@amitchandak I need the colour for blank to be whatever is stated in "ReportingBackgroundColor"
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
71 | |
38 | |
31 | |
27 |
User | Count |
---|---|
91 | |
50 | |
44 | |
40 | |
35 |