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
Sri_phani
Helper III
Helper III

Icon conditional formatting

Hi, 

 

I am trying to apply icon conditional formatting to the matrix comparing current month scores with previous month. I have created the measure and it's working fine.

 

Recontact Difference =
VAR score = CALCULATE(
 [Recontact],
DATEADD('Calendar'[Dates],-1,MONTH)
)
VAR Diff = [Recontact]-score
RETURN
Diff
 
But the problem is with the starting month January 2024. For that values the conditional formatting should show blank. But I am getting arrows. My data start from January 2024. 
 
For information, my data model has Recontact column for which measure created - Average('raw data' [Recontact] and Many to One relationship between Raw data table and calendar table. 
 
Appreaciate any help in this.  

  

Sri_phani_1-1719573338995.png

 

Sri_phani_2-1719573664474.png

 

Thank you!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Recontact Difference =
VAR score = CALCULATE(
 [Recontact],
DATEADD('Calendar'[Dates],-1,MONTH)
)
VAR Diff = [Recontact]-score
RETURN IF(NOT ISBLANK(score),
Diff)

View solution in original post

2 REPLIES 2
Sri_phani
Helper III
Helper III

Thank you @lbendlin, it worked like a magic

lbendlin
Super User
Super User

Recontact Difference =
VAR score = CALCULATE(
 [Recontact],
DATEADD('Calendar'[Dates],-1,MONTH)
)
VAR Diff = [Recontact]-score
RETURN IF(NOT ISBLANK(score),
Diff)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.