March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Dear all,
I'm trying to build a measure called [_Colours] that allows to apply a different combination of colours depending on the selected measure I have by using a field type CONDITIONAL FORMATTING and SELECTEMEASURENAME() and SELECTEDMEASURE() functions but it seems that those doesn't works into a conditional formatting: the goal is to avoid to create an specific conditional formatting for each measure.
Any suggestion?
Thank you in advanced
Hi @v-yilong-msft ,
Thanks for your kind reply but this is not exactly what I am asking for: I really know how to link a measure to a conditional formatting but my question was about how to create a dynamic conditional formatting for distinct fields (i.e. % yoy expenses and % yoy incomes) by using a single measure, not several measures, one for each field.
My thinking was using SELECTEDMEASURE() function but as you told me I checked that this functions only works in calculation groups but not in any standard measure.
Thank you anyway.
Best regards
Hi @Maia_LR ,
SELECTEDMEASURENAME() and SELECTEDMEASURE() really do not work in conditional formatting.
I created similar tables and conditional formatting.
If you want to differentiate by color I think you can just use the following DAX code.
Colors =
IF('Table'[Measure]>50,"Green","Red")
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
16 | |
16 | |
12 |