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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
DataNinja777
Super User
Super User

445 calendar matrix visual conditional formatting

Hi Power BI experts,

 

I am trying to create a 445 calendar visual (handmade) using matrix visual, as I couldn't find custom visual for non-standard calendar visual.  I'd like to highlight the last Sunday of the 445 calendar using the conditional formatting with red color.

 

DataNinja777_0-1700145384639.png

I have a measure of last day of the month in the 445 calendar table, and I'd like to use the red color as a background color for the last Sunday in the 445 calendar month.  Please could you let me know how I can do this?  In the interface below, I don't seem to be able to write the condition of the rule if the value is equal to the output of the last day of the month measure, highlight in red.  

DataNinja777_1-1700145448382.png

Thank you for your help!

 

1 ACCEPTED SOLUTION

@DataNinja777 To change the color using measure output, all you have to do is return the color code like "#FF0000" as a string value. You then set your conditional formatting to Field value instead of Rules and choose your measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
DataNinja777
Super User
Super User

Thanks @Greg_Deckler  I created a calculated column indicating if a particular date is equal to month end date and then if it is "Yes" in that field, color that in matrix using conditional formatting.  

Greg_Deckler
Super User
Super User

@DataNinja777 Just write your measure so that it returns the red color (#FF0000 or whatever) for the last Sunday of the 445 calendar month and then use, I think field value, instead of rules. Have it return BLANK for any other date.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler 

I'd like to also write the measure to concatenate the tasks to be performed on the particular calendar date, and I'd greatly appreciate it if you could let me know how I can assign the color to the measure output.  

Thanks a lot for your help!

@DataNinja777 To change the color using measure output, all you have to do is return the color code like "#FF0000" as a string value. You then set your conditional formatting to Field value instead of Rules and choose your measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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