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

Change in values from one day to the next in a matrix

Hi. How can I calculate the change of values from one day to the next in this matrix? I want a similar matrix like this, just that I replace the values of required margin with values that show change from the previous day. I also hope it can show values that skip the weekends.

Question delta values.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @LFM ,

Below is my table:

vxiandatmsft_0-1713924950521.png

The following DAX might work for you:

IsWeekday = IF(WEEKDAY('Table'[Date], 2) < 6, TRUE, FALSE)


SalesChange = 
VAR CurrentSales = SUM('Table'[2024])
VAR PreviousSales = CALCULATE(SUM('Table'[2024]), PREVIOUSDAY('Table'[Date]), 'Table'[IsWeekday] = TRUE)
RETURN CurrentSales - PreviousSales

Firstly , you can create a column named IsWeekday to examine the weekday. Secondly , you can create the SalesChange to calculate the current day's sales and subtracts the previous weekday's sales from it.

The final output is shown in the following figure:

vxiandatmsft_1-1713925073136.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @LFM ,

Below is my table:

vxiandatmsft_0-1713924950521.png

The following DAX might work for you:

IsWeekday = IF(WEEKDAY('Table'[Date], 2) < 6, TRUE, FALSE)


SalesChange = 
VAR CurrentSales = SUM('Table'[2024])
VAR PreviousSales = CALCULATE(SUM('Table'[2024]), PREVIOUSDAY('Table'[Date]), 'Table'[IsWeekday] = TRUE)
RETURN CurrentSales - PreviousSales

Firstly , you can create a column named IsWeekday to examine the weekday. Secondly , you can create the SalesChange to calculate the current day's sales and subtracts the previous weekday's sales from it.

The final output is shown in the following figure:

vxiandatmsft_1-1713925073136.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors
Top Kudoed Authors