Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
10 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |