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 have a ton of measures in cards and want to color code them. The color coding rule is always the same. Problem is, how can I apply it to all of my different measures.
Since it would be ridiculous to manually define each color condition I am looking for way to do that all at once.
I was super excited to use the selected measure function of dax...but it wasn't working. Can anyone help?
Sample Color Coding Background =
SWITCH(
TRUE(),
SELECTEDMEASURE() < 0.8, "#E34858",
SELECTEDMEASURE() < 0.95, "#EB6F24",
SELECTEDMEASURE() > 0.95, "#2EA675"
)
And I cant use Tabular Editor since it is blocked from our IT.
*bump* Did anyone find a solution to this?
If I replace SELECTEDMEASURE() with the one of the actual measures it works; but Microsoft shows this as an example on how to use the SELECTEDMEASURE() function, so I guess this should work??
https://learn.microsoft.com/en-us/dax/selectedmeasure-function-dax
I have the measure below on conditional formatting; but it is returning both positive as negative values in green.
Hi , unfortunately this doesn't work for the case above . I haven't found a solution yet.
Have you found a solution for this? I'm needing the same. Thanks
Did you ever find an answer to this? I'm trying to do the same via Tabular Editor using SELECTEDMEASURE() but it does nothing for the font colour.
I'm struggling with the same problem.
Did u find a workaround?
Calculation item measure cant be applied btw.
but the measure is greyed out when trying to use it as condition
@amitchandak : do you know if there is a free version? Or do you have any experience on that regarding licensing. Would only the person that creates the report need a tabular license or anyone who views a report?
@raymondpocher , as far as I know, you have to create it from tabular editor only.
Appreciate your logic. Good Idea to reduce measures.
Thanks but seriously? 😄
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 |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
62 | |
61 | |
49 | |
45 |