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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
chinaik123
Helper II
Helper II

How to do conditional formatting for X columns automatically

Hi I need help to change the color of my Line and Stacked Chart 

Basically, i want the FY2024 to be another color than FY2023. I do not want to do it manually as I would then have to do it for the next 12 months manually for my users.

chinaik123_0-1718699940292.png

Please help! Thanks in advance!

 

Thanks,

Ricky

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@chinaik123 

here is a workaround for you.

 

create measure

 

Measure = year(max('Table'[date]))
 
then go to the color setting
11.PNG
 
then set up the conditional formatting
 
12.PNG13.PNG
 




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

Proud to be a Super User!




View solution in original post

7 REPLIES 7
ryan_mayu
Super User
Super User

@chinaik123 

here is a workaround for you.

 

create measure

 

Measure = year(max('Table'[date]))
 
then go to the color setting
11.PNG
 
then set up the conditional formatting
 
12.PNG13.PNG
 




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

Proud to be a Super User!




Hi @ryan_mayu  Thanks! But what if my Year is Fiscal Year? Now it is showing for 2024 but not for Fiscal Year.... Please help me

You can do the similar way. Is the month and year from date table? Are they fiscal year and month?

Maybe just add the fiscal yar to the conditional format setting and set to 2024. 

 

if still not work, pls provide some sample data.





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

Proud to be a Super User!




I have linked the actual date to the Dates table which is shown below.

When i try to add the Fiscal Year it always show as a SUM which is incorrect

 

chinaik123_0-1718788968890.png

 

then you can create a measure

 

Measure = max('date'[fiscalyear])
 
11.PNG
 
 

 

 





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

Proud to be a Super User!




It Works!! Thanks so much !

you are welcome





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

Proud to be a Super User!




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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