Forum Discussion
Calculate previous month aggregate amount
- 9 years ago
Hi Jane123,
I try to reproduce your scenario and get expected result as follows.
My sample data is shown in the picture below.
Create measure to calculate the total sum sales of previous month.Previous = CALCULATE(SUM(Table_Ex[Amount]),PREVIOUSMONTH(DateTable[Date]))
Create slicer including Year, Month field. Create a table displays the expected result. The "Amont" field shows the sum of sales in March, The "PreviousMonth" field shows the sum of sales in Feb.
Best Regards,
Angelia
Hi Jane123,
I try to reproduce your scenario and get expected result as follows.
My sample data is shown in the picture below.
Create measure to calculate the total sum sales of previous month.
Previous = CALCULATE(SUM(Table_Ex[Amount]),PREVIOUSMONTH(DateTable[Date]))
Create slicer including Year, Month field. Create a table displays the expected result. The "Amont" field shows the sum of sales in March, The "PreviousMonth" field shows the sum of sales in Feb.
Best Regards,
Angelia
Hi,
Thank you, but this is not exactly what I need. I have a time period slicer which I cannot change due to business needs.
I have an update: