Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi All I asked this yesterday but accidentally closed the thread,
I have been asked to create a new set of thresholds for a bar chart so that the color of the bar is based on a value range for each specific category. For Example,
Category 1 Value>=895 then red <=649 then green and between the two Amber
Category 2 Value >=1000 then red <=705 green etc.
What is the best way to go about this?
Thanks in advance
Mike
Solved! Go to Solution.
Hi @Anonymous
Can you please try the steps below to achieve your result?
1. Create a measure.
Hi @Anonymous
Can you please try the steps below to achieve your result?
1. Create a measure.
@Anonymous This could be achieved by conditional formatting in Power BI using a DAX measure like below:
Bar Color =
SWITCH(
TRUE(),
SELECTEDVALUE(Table[Category]) = "Category 1" && Table[Value] >= 895, "Red",
SELECTEDVALUE(Table[Category]) = "Category 1" && Table[Value] <= 649, "Green",
"Amber"
)Apply this measure in the Data Colors section of the chart and repeat the logic for other categories and value ranges.
If this post helped please do give a kudos and accept this as a solution
Thanks In Advance
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 62 | |
| 42 | |
| 20 | |
| 18 |