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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.