This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I want to color brands based on Profit by Year.
ProfitLastYear =
var NumbDays =
if(
TODAY() - FIRSTNONBLANK(Verkoopslijnen[Datum], 1) <= 365
, TODAY() - FIRSTNONBLANK(Verkoopslijnen[Datum], 1)
, 365
)
RETURN
DIVIDE(
CALCULATE(
SUM(Verkoopslijnen[Winst])
, Kalender[Date] >= TODAY() - NumbDays
)
, NumbDays
)Second Measure is:
ColorPicker =
SWITCH(
TRUE()
, [ProfitLastYear] < 5, "#00FF00"
, [ProfitLastYear] < 100, "#FFFF00"
, [ProfitLastYear] <10000, "#FF0000"
, "#C0C0C0"
)Now, I want to use the ColorPicker as conditional Format on my brands, but I cannot click on the measures
What Am I doing wrong?
Hi,
I had the same issue, and I solved it by changing the measure Data type as Text.
Select the color measure, go to Modeling -> Formatting -> Data Type -> Text and try againg the conditional formatting by field.
Cheers
Hi @Anonymous
Here is the document for your reference.
Regards,
Cherie
When you open the conditional formatting window in the
Format By you need to select Field Value
then you should be able to select your Measure in Based on Field ![]()
Sean, I know, but it's still impossible to click on the measure :
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 30 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 63 | |
| 53 | |
| 31 | |
| 23 | |
| 23 |