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
Dear Community,
I m trying to write a measure that will later be used to color the matrix cell elements with conditional coloring.
I have min and max in my data and depending on it the rule is like versa versa.
The problem is that the second part of the measure works, when the fileds is not equal to min. While the first part of tthe measure when the field i equal to min, doesn't work.
Here is my measure:
Basically I have 2 cases:
1. if (average(curret_value) < threshold, then 1, 2)
2. if (average(curret_value) > threshold, then 1, 2)
I want to write these 2 conditions using variable in DAX.
My 2 conditions:
1. if (average(curret_value) < threshold, then 1, 2)
2. if (average(curret_value) > threshold, then 1, 2)
So, if [UOM Type_measure] = "min", use condition 1, else use condition 2. Hope this makes my question more clear.
@Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |