Forum Discussion
Estefania89
10 years agoNew Member
PREVIOUSMONTH
Hello! Attempt to calculate the sales of the previous month using this function: SP= CALCULATE ( SUM ( Table1 [number ] ) ; previousMonth (Table 2 [DATA ] ) ) However, the function does not ret...
- 10 years ago
Finally you can use your measure:
SP= CALCULATE ( SUM ( Table1 [number ] ) ; previousMonth (CalendarTable [DATE ] ) )
Vvelarde
10 years agoCommunity Champion
Finally you can use your measure:
SP= CALCULATE ( SUM ( Table1 [number ] ) ; previousMonth (CalendarTable [DATE ] ) )
Estefania89
10 years agoNew Member
Perfect!
It works now. Thanks so much for all your help!
- Anonymous7 years agoNot applicable
Hi,
I have the same problem but I already have a date table.
I linked it to my sales table. The SAMEPERIODLASTYEAR function works properly but the PREVIOUSMONTH function is not working. It's giving me a blank column. Please help !
Thank you !