Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Color formatting of every bar

Hi guy's

I have a Bar chart Visualization like this,

Capture.JPG

I have a requirement like every bar till 13 values it'll showing yellow after 13 white, Is it possible for writing Dax of this issue.  

I want to like this.

 Capture1.JPG

regards,
Naveen

1 ACCEPTED SOLUTION
VasTg
Memorable Member
Memorable Member

@Anonymous 

 

I would split the measure into two and use them stacked bar chart. This way you could change the color for individual measure.

 

Measure 1 = IF(SUM(Sales[Revenue])>13,SUM(Sales[Revenue])-13,0)
Measure 2 = IF(SUM(Sales[Revenue])>13,13,SUM(Sales[Revenue]))
 
Note that the sorting order might differ but I guess you could use Sort By column option to sort it based on your need.
Capture3.PNG
If it helps, Please mark this answer as a solutions.
Kudos are good too.
Connect on LinkedIn

View solution in original post

1 REPLY 1
VasTg
Memorable Member
Memorable Member

@Anonymous 

 

I would split the measure into two and use them stacked bar chart. This way you could change the color for individual measure.

 

Measure 1 = IF(SUM(Sales[Revenue])>13,SUM(Sales[Revenue])-13,0)
Measure 2 = IF(SUM(Sales[Revenue])>13,13,SUM(Sales[Revenue]))
 
Note that the sorting order might differ but I guess you could use Sort By column option to sort it based on your need.
Capture3.PNG
If it helps, Please mark this answer as a solutions.
Kudos are good too.
Connect on LinkedIn

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors