Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Attempting to apply conditional formatting icons to a column based on values in another column. Inspired by this post: Conditional formatting based on multiple conditions , I created a measure:
Solved! Go to Solution.
Revised DAX Measure:
Lead Status Condition =
MAXX(
Leads,
SWITCH(
TRUE(),
Leads[Status] = "New" && Leads[Lead Age] >= 30, 1,
Leads[Status] = "Working" && Leads[Lead Age] > 90, 2,
Leads[Status] = "New" && Leads[Lead Age] < 30, 3,
BLANK() // Optional: to handle cases that don't meet any conditions
)
)
Steps:
Revised DAX Measure:
Lead Status Condition =
MAXX(
Leads,
SWITCH(
TRUE(),
Leads[Status] = "New" && Leads[Lead Age] >= 30, 1,
Leads[Status] = "Working" && Leads[Lead Age] > 90, 2,
Leads[Status] = "New" && Leads[Lead Age] < 30, 3,
BLANK() // Optional: to handle cases that don't meet any conditions
)
)
Steps:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 41 | |
| 36 | |
| 23 |
| User | Count |
|---|---|
| 192 | |
| 125 | |
| 106 | |
| 78 | |
| 53 |