Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
Need help with conditional formatting. I have a table with activities and statuses (closed/open). So I added this measure (called Measure) but it gives value 2 to blank cells as well:
Solved! Go to Solution.
Hi, @Alex_0201
According to your description, I think you can create a measure, It only judge the two states of open and closed.
like this:
Measure = IF(MAX('Table'[Status])="open","Red",IF(MAX('Table'[Status])="closed","Green"))//Omit blank()
Then use it in condifitional formatting.
Like this:
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey
Hi, @Alex_0201
According to your description, I think you can create a measure, It only judge the two states of open and closed.
like this:
Measure = IF(MAX('Table'[Status])="open","Red",IF(MAX('Table'[Status])="closed","Green"))//Omit blank()
Then use it in condifitional formatting.
Like this:
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey
@Alex_0201 , Blank cell can not be colored
Try this
color measure =
var _1 = coalesce(MAX([Table]), "Closed")
return
SWITCH(_1,
"Closed","Green"
"Open","Red"
)
Use this in conditional formatting using field value option
)
@amitchandak, thanks! but I need this measure as an input in conditional formatting for background color of cells thus the values 1 and 2. And with your modification I can not choose the measure in conditional formatting anymore.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
99 | |
70 | |
44 | |
38 | |
29 |
User | Count |
---|---|
156 | |
92 | |
61 | |
44 | |
42 |