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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors