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,
I want to create a measure to highlight below or above the average price.
For example
Customer Price Check
A 5 below average ==> red
B 7 above average ==> green
C 6
Hey @mjmjn2611 ,
you can add the color as a calculated column:
Check =
VAR vRowPrice = myTable[Price]
VAR vAveragePrice = AVERAGE(myTable[Price])
RETURN
SWITCH(
TRUE(),
vRowPrice < vAveragePrice, "red",
vRowPrice > vAveragePrice, "green"
)
Then you can use that column for the conditional formatting:
And that's then the result you get:
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 |
---|---|
46 | |
28 | |
22 | |
12 | |
8 |
User | Count |
---|---|
76 | |
53 | |
46 | |
16 | |
12 |