Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello,
I try to change the color using a measure, but without much success. Basically, my condition does not work :
Normally, the "Sugar" should show in Red... but everything shows in Orange.
Can someone help me ?
Regards,
Louis
Solved! Go to Solution.
Hi @Louis66 ,
This issue has been submitted internally.
Internal ICM ID: 343098936
Please be patient to wait for fixing. If there is any news, I will update it here.
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Louis66 ,
This issue has been submitted internally.
Internal ICM ID: 343098936
Please be patient to wait for fixing. If there is any news, I will update it here.
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Louis66 ,
try below DAX Measure
colour =
SWITCH (
SELECTEDVALUE ( 'Cookie Types'[Cookie Type] ),
"Sugar", "Red",
"Orange"
)
Hello,
Unfortunately this DAX Measure does not work either - please see this screenshot :
Louis
?! that's the same as the IF statement.
Just for testing purposes, can you add your Colour measure to the matrix next to Cookie Type and see if it returns Red/Orange?
I tried it, but no success either
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |