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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
maurcoll
Helper IV
Helper IV

Conditional Format on date change

Hi is it possible to conditional format a matrix if a number has changed between dates. I have two dates that i am comparing the ordered date and the order due date. I want to format if the total order number change

 

Ordered Date / Order Due Date15/06/2616/06/2617/06/26
01/05/2625283
02/05/2626253
03/05/2626253

I want to be able to highlight the changes as identified in the above so the based on the ordered date

1 ACCEPTED SOLUTION
Kedar_Pande
Super User
Super User

@maurcoll 

Change Color = 
VAR _current = [Order Count]
VAR _prev =
CALCULATE(
[Order Count],
PREVIOUS('DueDate'[Order Due Date])
)
RETURN
IF(_current <> _prev && NOT ISBLANK(_prev), "#FFFF00", "#FFFFFF")

Set the matrix cell background to Field Value using this measure.

View solution in original post

2 REPLIES 2
Kedar_Pande
Super User
Super User

@maurcoll 

Change Color = 
VAR _current = [Order Count]
VAR _prev =
CALCULATE(
[Order Count],
PREVIOUS('DueDate'[Order Due Date])
)
RETURN
IF(_current <> _prev && NOT ISBLANK(_prev), "#FFFF00", "#FFFFFF")

Set the matrix cell background to Field Value using this measure.

grazitti_sapna
Super User
Super User

Hi @maurcoll,

 

Yes, you can achieve it by creating a measure for apply color change. 

 

Create a measure with your conditions.

add your required data to matrix

go to cell elements -> select where you want to apply change (e.g.Background or font)

Select the measure which you just created

grazitti_sapna_0-1781686528205.png

 

Attached is an example .pbix for you.

 

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.