Forum Discussion

SamOvermars's avatar
SamOvermars
Icon for Helper I rankHelper I
4 years ago
Solved

Compare data with previous last month not working

Hello, I have this dax used for the Lst Month column LastMonth= CALCULATE( SUM( table1[cost]), DATEADD( table1[date], -1 , MONTH ))   but its showing blank as you see. I created a new cale...
  • littlemojopuppy's avatar
    4 years ago

    Hi SamOvermars 

    Try this instead

    LastMonth = 
    CALCULATE(
    	SUM( table1[cost]), 
    	PREVIOUSMONTH(DateTable[DateField])
    )