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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
samto22
Frequent Visitor

Conditional formatting X axis categories

Hello!

I'm wondering if it's possible to highlight weekend on X-axis (see e.g. screenshot). I appreciate if somebody could share suggestions how to achieve this. Google doesn't help at the moment 😞

83383176_2685808311533993_7655191108133060608_n.jpg

 

Thanks!

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

Hi,

 

According to your description, i think you can not change part of X axis data's color, but i have a workaround:

Please create a color check measure to change values' color:

Color Check = IF(WEEKDAY(SELECTEDVALUE('Table'[Date]),1)=1||WEEKDAY(SELECTEDVALUE('Table'[Date]),1)=7,"#FF0000")

Then apply it to data values' conditional format:

21.PNG

And it shows:

22.PNG

 

Hope this helps.

 

Best Regards,

Giotto Zhi

View solution in original post

2 REPLIES 2
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, i think you can not change part of X axis data's color, but i have a workaround:

Please create a color check measure to change values' color:

Color Check = IF(WEEKDAY(SELECTEDVALUE('Table'[Date]),1)=1||WEEKDAY(SELECTEDVALUE('Table'[Date]),1)=7,"#FF0000")

Then apply it to data values' conditional format:

21.PNG

And it shows:

22.PNG

 

Hope this helps.

 

Best Regards,

Giotto Zhi

Thank you, @v-gizhi-msft !

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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