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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Conditional formatting for Total Labels

Hello, 

I'm using a measure to color the total label but for some reason it's not working for the stacked coloumn chart.

I know that my measure is working fine from the tables but for some reason it's not working for total labels.

 

Where am I going wrong?

 

Gerri_2-1653017611332.png

Gerri_1-1653017543175.png

Gerri_3-1653017799716.png

 

 

4 REPLIES 4
M181ut
New Member

For other people who had a similar problem, I found a way to solve it.

I have a stacked graph of charges divided by categories and for an unknwon and bizarre reason the formatting of total labels is based on the top column of the stacked column so only one category and not the total.

To bypass this, I created a measure CALCULATE([charges], ALLEXCEPT( list of filters I need BUT categories)) and I base my formatting on this new measure that is not affected by categories.

Anonymous
Not applicable

HI @Anonymous,

When you use table and matrix visuals, conditional formatting works on the detail levels and they did not apply to the total level.
For the stacked column chart, the conditional color formatting only worked when you do not use table columns on the legend fields.

 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Anonymous , the Color on the label is based on grand total value. That is the reason

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

How should I edit the measure to split it over the months?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors