Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
Solved! Go to Solution.
Hi @LFM ,
Below is my table:
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:
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.
Hi @LFM ,
Below is my table:
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:
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!