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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
itskool
Helper II
Helper II

Conditional formatting of X-axis values

Hi all,

 

I am struggling with applying conditional formatting to x-axis values:

I need to mark the weekend bars as well as their x-axis values with a different color. 

I have managed to apply the conditional formatting to the bars themselves by creating a columns with the DayofWeekNumber and setting the rule as "if Sum of DayofWeekNumber is >5 then pink"

But for some reason this approach does not work with the x-axis labels (the actual words that say Saturday, June 25 etc.)

itskool_0-1659450464018.png

Does anyone have an idea how to implement this? Is it at all possible to implement conditional formatting for individual values of the x-axis or does it only work for the whole axis?

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @itskool ,

 

According to my knowledge, your requirement could not be realized currently. An idea similar with what you expect has been submitted in Microsoft Idea (powerbi.com)

You may vote the idea and comment  to improve this feature. It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-jianboli-msft
Community Support
Community Support

Hi @itskool ,

 

According to my knowledge, your requirement could not be realized currently. An idea similar with what you expect has been submitted in Microsoft Idea (powerbi.com)

You may vote the idea and comment  to improve this feature. It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@itskool , Create a color measure and use it in conditional formatting with the field value option

 

if( weekday(max('Date'[Date],2) >=6, "Pink", "Blue")

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...

Thanks for your reply.

Unfortunately, it still formats the whole axis, not just the weekend values.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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