Forum Discussion

JB's avatar
JB
Icon for Helper II rankHelper II
4 years ago
Solved

Confusion regarding PREVIOUSMONTH

The official Microsoft website provides the following as an example for the correct use of PREVIOUSMONTH

= CALCULATE(SUM(InternetSales_USD[SalesAmount_USD]), PREVIOUSMONTH('DateTime'[DateKey]))

 

The expression below does not work for me, despite seemingly following the exact same structure and logic as the above example. It only returns '(Blank)', despite the Sort Score column containing data. Why is that?

= CALCULATE(AVERAGE(AuditTable[Sort Score]), PREVIOUSMONTH('Date Table'[Date]))

Thanks for your help. 

2 Replies