The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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:
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
32 | |
20 | |
17 | |
15 |
User | Count |
---|---|
53 | |
31 | |
30 | |
23 | |
21 |