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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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