Forum Discussion
Janaki
9 years agoRegular Visitor
dax previousmonth
Hi, I am trying use PREVIOUSMONTH to get the previous month value. My data looks like this I calculated previous from current value using PREVIOUSMONTH, but i get one extra month Mar...
Janaki
9 years agoRegular Visitor
Hi,
Thank you. The currentvalue that I am using is a measure. Would you have a alternate suggestion?
Eric_Zhang
9 years agoMicrosoft Employee
Janaki wrote:
Hi,
Thank you. The currentvalue that I am using is a measure. Would you have a alternate suggestion?
Then just try
Previousvalue =
IF (
ISBLANK ( MAX ( xyz[ReportDate] ) ),
BLANK (),
CALCULATE (
'xyz'[CurrentValue],
PREVIOUSMONTH ( dimdate[Date].[Date] )
)
)