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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Dax - Conditional Fomatting

Hello people,

 

I have doubts about how to create a dax function that changes only with month \ year, to highlight in the table only the tickets that were above the average month \ year.

 

In this screen printed below, the month of March had three tickets resolved that totaled 25.95 days and an average of 8.65 days per ticket.

 

Img.png

 

In the table, only the 1st ticket lasting 12.21 days should be colored.

 

Is there a way to do this?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Greg, the rule would be:

IF (Duration (Days) > Average of Duration (Days), "Red", "Green")

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

So what is the rule that it should be highlighted?



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...
Anonymous
Not applicable

Hi Greg, the rule would be:

IF (Duration (Days) > Average of Duration (Days), "Red", "Green")

Anonymous
Not applicable

Hi there.

 

Here's your solution. Please adjust it to your needs.

Conditional Formatting based on Monthly AvgConditional Formatting based on Monthly Avg

Here's the file:

 

https://1drv.ms/u/s!ApyQEauTSLtOgYM_8lY01MNux79mvw?e=LOxfiX

 

Best

D

Anonymous
Not applicable

 

Thank you very much @Anonymous,

 

That was exactly what I was needing.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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