Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
hi ,
how to set conditional formatting on Bar Chart based on Value Vs. Target ?
if the value < target => Red Bar chart
if the value > target => Green Bar chart
thx you
If above posts don't meet your requirements, kindly share your sample data and expected results to me if you don't have any Confidential Information. Please upload your files to One Drive for business and share the link here.
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Create a measure like this
Color Hours = SWITCH(true(),
Sum([Target]) > 10,"green",
"red"
)
You can have more conditions.
I used a clustered chart. There In data Color, On group by I clicked on advance Control (You will see three dots on hover click on that).
There choose field option in first LOV and choose this measure
@amitchandak , hi , i have different target in each category , the target not sustain based on month .
i think above is not work .
@Chanleakna123 - This is where sample data would be very useful.
Try
Color Category = SWITCH(true(),
Max(Sheet1[Category]) in {"A",} && Sheet1[Target]<10,"green",
Max(Sheet1[Category]) in {"B"} && Sheet1[Target]<10,"orange"
"red"
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |