Forum Discussion
Anonymous
6 years agoNot applicable
SSAS tabular cube previous month data
Hi team, below is my data and yellow color is my expected output. i want to get previous month data. in below "Total" column is my measure and i want to get lag/previous month measure "Previous ...
- 6 years ago
Hi Anonymous ,
Sorry, please update the measure as below.
Total Previous Month = VAR pre = EDATE ( MAX('DIM_REVENUE'[date]), -1 ) VAR preym = FORMAT ( pre, "mmm yyyy" ) RETURN CALCULATE ( SUM ( DIM_REVENUE[Revenue] ), FILTER ( ALLSELECTED(DIM_REVENUE), DIM_REVENUE[Month Name] = preym ) )Pbix as attached.
- Anonymous6 years ago
Mariusz
6 years agoCommunity Champion
Hi Anonymous
Try PARALLELPERIOD DAX function
https://docs.microsoft.com/en-us/dax/parallelperiod-function-dax
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.