Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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
Solved! Go to Solution.
@Anonymous follow this , you can create a measure and use that multiple times in any screen
Proud to be a 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
@Anonymous follow this , you can create a measure and use that multiple times in any screen
Proud to be a Super User!
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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
42 | |
30 | |
27 | |
27 |