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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
non23
Helper I
Helper I

Stacked Column Chart - gradient color based on %

Is there a way to have a stacked column chart with gradient color as legend based on the value or percentage:

Highest percentage will take the darkest color and lowest for the lightest color.
my x axis is date and grade
y axis is value %
legend is size (can be removed just to have a gradient scheme for the size)

 

Screenshot 2025-07-16 095014.png

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @non23 

 

That will require conditional formatting  which is currently not supported on legends. 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

Ritaf1983
Super User
Super User

Hi @non23 

Unfortunately, Power BI does not support conditional formatting in stacked column charts based on the measure value. This means you cannot apply a dynamic gradient color based on the percentage within the stack.

Additionally, if your visual spans across multiple dates (i.e., a timeline), using a stacked column chart is not the most effective choice from a data visualization and UX perspective. It becomes very hard to compare changes in the dominance of different sizes over time.

Instead, I recommend using a heatmap-style matrix visual — with dates as columns and sizes as rows — to visualize the relative distribution of sizes over time. This approach is much clearer and allows you to identify patterns or shifts in size dominance more easily.
(Like the one shown in my screenshot.)

Ritaf1983_0-1752637817265.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @non23 

Unfortunately, Power BI does not support conditional formatting in stacked column charts based on the measure value. This means you cannot apply a dynamic gradient color based on the percentage within the stack.

Additionally, if your visual spans across multiple dates (i.e., a timeline), using a stacked column chart is not the most effective choice from a data visualization and UX perspective. It becomes very hard to compare changes in the dominance of different sizes over time.

Instead, I recommend using a heatmap-style matrix visual — with dates as columns and sizes as rows — to visualize the relative distribution of sizes over time. This approach is much clearer and allows you to identify patterns or shifts in size dominance more easily.
(Like the one shown in my screenshot.)

Ritaf1983_0-1752637817265.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
danextian
Super User
Super User

Hi @non23 

 

That will require conditional formatting  which is currently not supported on legends. 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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