DAX function for calculation of Change of Value of Product for 5 days

kanth999

New Member
Joined
Aug 21, 2020
Messages
8
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I want to calculate the "Change of Values" for a "Products" between the today and previous day and Previous day vs a day before previous for 5 days. I have given example of two Products, however I have around 1000+. Can anyone please help with the DAX formulas for Power BI. Thanks in advance for your help.

PRODUCTSDATEPREV_CLOSEOPEN_PRICEChg PREV_CLOSEChg OPEN_PRICE
PENCILS
Monday, February 1, 2021​
1124.4​
1125​
PENS
Monday, February 1, 2021​
243.35​
246.4​
PENCILS
Tuesday, February 2, 2021​
1169.75​
1179.35​
PENS
Tuesday, February 2, 2021​
260.8​
263.7​
PENCILS
Friday, February 5, 2021​
1220​
1229.6​
PENS
Friday, February 5, 2021​
272.75​
273​
PENCILS
Thursday, February 4, 2021​
1187.95​
1193.8​
PENS
Thursday, February 4, 2021​
268.95​
268​
PENCILS
Wednesday, February 3, 2021​
1149.95​
1159​
PENS
Wednesday, February 3, 2021​
276.25​
276.1​
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top