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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
servicepowerbi
New Member

Conditional formating

I have a histogram (link below) grouped by 5-days. the left one is October, central is November and the right one is December.

Yellow is from 1st till 5th day of each month, 11 till 15...

Grey is from 6 till 10...

https://prnt.sc/qd3bgo

 

These colors are set manually in Data colors menu. And when the new 5-days starts (for example it is yellow now, on 21 December a new group will be created), the new created group will become random colored. And i need to set is grey manually.
How can i make a conditional formatting for this situation, could you help please?

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

Hi,

 

According to your description, I create a table to test:

91.png

Please take following steps:

1)Choose a line and stacked column chart and set the color.

2)Create a column:

Group = ROUND([Date Start].[Day]/5,0)

3)Add this column to visual’s column series instead of original group:

92.png

4)Add a date filter on this page, for different filter, it shows:

93.png

94.png

And the new data color is synchronized with the original format.

 

Here is my test pbix file:

pbix 

 

Best Regards,

Giotto Zhi

 

View solution in original post

1 REPLY 1
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, I create a table to test:

91.png

Please take following steps:

1)Choose a line and stacked column chart and set the color.

2)Create a column:

Group = ROUND([Date Start].[Day]/5,0)

3)Add this column to visual’s column series instead of original group:

92.png

4)Add a date filter on this page, for different filter, it shows:

93.png

94.png

And the new data color is synchronized with the original format.

 

Here is my test pbix file:

pbix 

 

Best Regards,

Giotto Zhi

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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