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! Learn more

Reply
Tim_H
Helper I
Helper I

conditional format based on calculation in matrix.

Hi

 

I want to add an arrow on below matrix for each month compared with the previous month.

 

Untitled.png

 

When critical tickets increase, stay the same or get lower

When Major tickets in crease, stay the same or get lower

 

Untitled2.png

 

if possible in the end should look something like below (arrow can be extra column for each month)

 

Untitled3.png

 

Thanks

 

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Tim_H ,

 

Create the following measure:

Previous_Month_Values = COUNT('Table'[Severity]) - CALCULATE(COUNT('Table'[Severity]); DATEADD('Table'[Date];-1;MONTH))

Now create the condittional formatting based on this measure:

MFelix_0-1603293492771.png

MFelix_1-1603293527748.png

 

 

Check PBIX file attach is using a sum and not a count but works in the same way just replace use the syntax above.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @Tim_H ,

 

Create the following measure:

Previous_Month_Values = COUNT('Table'[Severity]) - CALCULATE(COUNT('Table'[Severity]); DATEADD('Table'[Date];-1;MONTH))

Now create the condittional formatting based on this measure:

MFelix_0-1603293492771.png

MFelix_1-1603293527748.png

 

 

Check PBIX file attach is using a sum and not a count but works in the same way just replace use the syntax above.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix 

 

Thanks, but not 100% working. I do see arrows but all have same color. I think this is because my 'severity' is not counted as you have in column Quantity but is still line/line for several dates in one month.

 

Untitled2.png

Below extract from very uge file ( + 18K tickets)

 

kr

 

Tim

Hi @Tim_H,

 

A good practice for this type of calculation is to add a Calendar table that related with your date column then you just need to do the following measure for the formatting:

Previous_Month_Values = 
COUNT('Table'[Severity]) - CALCULATE(COUNT('Table'[Severity]); DATEADD('calendar'[Date];-1;MONTH))

Now do the formatting has previously.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix 

 

Works ! great thanks...

 

had to change my formula by adding .date

 

DATEADD(overview[Reported date YYYY-MM].[Date],-1,MONTH))

 

 

 

Previous_Month_Values = count(overview[Severity]) - CALCULATE(COUNT(overview[Severity]),DATEADD(overview[Reported date YYYY-MM].[Date],-1,MONTH))

 

 

 

 

Kind regards

 

Tim

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