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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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