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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
MKeppel
Frequent Visitor

Conditional formatting Stacked Chart Data Label Values

Hi,

For some unknown reason, I can't seem to get the data labels to change their colours they way I want.

 

I want different categories to have a different colour so white text on darker category color, and dark text on the lighter category colour

 

Playing around with a matrix, and cell elements conditoinal formattings, it works fine based on retreiving either the rows field value, or a measure which does a switch condition.

 

Currenlty within Power BI - Field value set to mcasesubjectfrontcolor, but all showing up white

 

 

Visual setup

How the visual is setup.png

 

Current out come .. All end up the same color..

Stack chart font not changing colour?Stack chart font not changing colour?

 

 

Proof that mcasesubjectfontcolor is setup, and works in matrix

Proof that field values work via MatrixProof that field values work via Matrix

 

Expected outcome (ignoing the colours in the proof of concept, I am after is subject A = Front White, If Subject B = Font Blank ....)

Mocked up - Expected outcomeMocked up - Expected outcome

1 REPLY 1
ribisht17
Community Champion
Community Champion

@MKeppel 

 

 

Data Labels do not support conditional formatting, you could custom it but not format it as conditional.

 

You could vote the same idea for your requirement and make this feature come sooner.

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.