Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all...
Got a simple ask if the difference between 2 data point is < then background color is red else green. I wish to do this all within the measure. Please see below sample.
VAR _diffFTECount = _FTECountCurrentYear - FTECountPreviousYear
VAR _result =
SWITCH (
SELECTEDVALUE ( 'Static'[Metrics] ),
"FTE Count", _diffFTECount < 0,"#ffc7ce","#c6efce",
)
RETURN
_result
not really clear on what you asking, where are you trying to use this measure, what visual.
in the formatting area of your visual you should be able to select the measure you have created and select it under field value.
Proud to be a Super User!
I understand what you shared but because the measure was build in specific ordering of metrics I couldn't find a work around it.
Here my earlier post where this was derived from..
https://community.powerbi.com/t5/Desktop/Display-table-in-matrix/m-p/3103239#M1051919
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |