Reply
itskool
Advocate II
Advocate II
Partially syndicated - Outbound

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

Syndicated - Outbound

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

4 REPLIES 4
Fusilier2
Helper III
Helper III

Syndicated - Outbound

I realise this is an old thread, but this still seems to be the case.

v-jianboli-msft
Community Support
Community Support

Syndicated - Outbound

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

Syndicated - Outbound

@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/...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Syndicated - Outbound

Thanks for your reply.

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

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)