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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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!:
DAX For Humans

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
Community Champion
Community Champion

@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!:
DAX For Humans

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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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