Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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 :
User | Count |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |