Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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 :
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |