Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
anindya_manna
Partner - Creator II
Partner - Creator II

Convert this expression into set expression

Below expression is for calculating previous month.

=date(AddMonths(date#(max([FSPM Month Number]),'YYYYMM'),-1),'YYYYMM')

I want to calculate previous month based on date filter. It should not affected by any other selection like product name and rep id.

Bu using above normal exp. previous month calculation is changing as per selection like product name and rep id

13 Replies
anindya_manna
Partner - Creator II
Partner - Creator II
Author

Getting sytanx error

agigliotti
Partner - Champion
Partner - Champion

sorry

=date(AddMonths(date#(max( {1< [FSPM Month Number] = $::[FSPM Month Number]>}  [FSPM Month Number]),'YYYYMM'),-1),'YYYYMM')

anindya_manna
Partner - Creator II
Partner - Creator II
Author

Convert this expression into set expression

Pleas find the attached file here

anindya_manna
Partner - Creator II
Partner - Creator II
Author

Thanks.

Its working