Forum Discussion
Last date Previous Month
- 8 years ago
HI Chrism123
May be this one
= CALCULATE ( SUM ( Table1[Amount] ), LASTDATE ( PREVIOUSMONTH ( Kalender[Date] ) ) )
Hi,
Try this
=CALCULATE(SUM(Table1[Amount]),PREVIOUSMONTH(Kalender[Date]))
Ensure that in the Date filter is created from the Kalendar table. There should be a relatioship from the Date column of the Table1 to the Date column of the Kalendar table.
- Chrism1238 years agoFrequent Visitor
Hi,
thanks for your reply. When I use this formula I get the sum for all the dates of the previous month. But I only want to have it for the last day of the month.
- Zubair_Muhammad8 years agoCommunity Champion
HI Chrism123
May be this one
= CALCULATE ( SUM ( Table1[Amount] ), LASTDATE ( PREVIOUSMONTH ( Kalender[Date] ) ) )- Chrism1238 years agoFrequent Visitor
Thanks that works :smileyhappy:
Do you know if it is also possible to apply this forumula to a measure that is already existing?
I would like to filter the measure [Sales EUR FX] to be calculated for the last date on the previous month. Is this possible?
Here is my latest approach:
=Filter(LASTDATE(PREVIOUSMONTH(Kalender[Date])),[Sales EUR FX])