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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
akarca
Frequent Visitor

subtraction value of a day and previous day

Hello,

I would like to subtract the values of the day with the previous day value. Tabel like as fallow;

 

Date                  Value

01.01.2022       1259

02.01.2022       1301

03.01.2022       1238

etc..                  etc...

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,
You can use this logic to retrieve the previous day value and then substract from there: https://datacornering.com/calculate-last-or-previous-value-within-power-bi/

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @akarca ,

Here are the steps you can follow:

1. Create calculated column.

Column =
SUMX(FILTER(ALL('Table'),
'Table'[Date]=EARLIER('Table'[Date])-1),[Value])
-
[Value]

2. Result:

vyangliumsft_0-1663045925849.png

 

Best Regards,

Liu Yang

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

Anonymous
Not applicable

Hi,
You can use this logic to retrieve the previous day value and then substract from there: https://datacornering.com/calculate-last-or-previous-value-within-power-bi/

 

Helpful resources

Announcements
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.