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

Join 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.

Reply
Anonymous
Not applicable

How to build reusable Stack Column Chart bar auto coloring

Hi all,

We have a dashboard containing mulitple pages and each page has several stack column charts. The charts have 'Fiscal Year' for the X-axis and various currencly amounts for the Y-axis. Fiscal year values are in the format of FY2019, FY2020, FY2021, etc. What is the best way to assign color based on the last most digits of the fiscal year and make the method reusable by other graphs in this dashboard and graphs in other reports as well.

 

For example

FY2019 ------------> 9  -----------> green

FY2020 ------------> 0  -----------> blue

FY2021 ------------> 1  -----------> yellow

FY2022 ------------> 2  -----------> orange  

FY2023 ------------> 3  -----------> maroon

FY2029 ------------> 9  -----------> green



Thank you for your assistance,

 

Seyed

1 ACCEPTED SOLUTION
VijayP
Super User
Super User

@Anonymous  follow this , you can create a measure and use that  multiple times in any screen

 

VijayP_1-1692979325993.png

 

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

3 REPLIES 3
gmsamborn
Super User
Super User

Hi @Anonymous 

Would something like this help?

https://radacad.com/set-power-bi-data-color-all-visuals-to-follow-same-color-for-the-same-data-point

 



Proud to be a Super User!

daxformatter.com makes life EASIER!
VijayP
Super User
Super User

@Anonymous  follow this , you can create a measure and use that  multiple times in any screen

 

VijayP_1-1692979325993.png

 

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

Hi VijayP,

Thank you for your assistance. I was able to get it to work. I am going to accespt this as a solution. Just have a follow-up question. I was thinking to connect formatting to an external Excel file and manage color colors externally, that way, any updates to the colors would not require modifying the .pbix file. Any thoughts on how to do that?

 

Again, thank you for your assistance!

 

Seyed

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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