Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Like this?
=date(AddMonths(date#(max( {<product, repid, anyotherfield>} [FSPM Month Number]),'YYYYMM'),-1),'YYYYMM')
Note: If you want this to be unresponsive to any selection, you could just use {1}, like
date(AddMonths(max( {<1>} [FSPM Month Number]),-1),'YYYYMM')
Note: Here date#() is redundant (assuming your expression was a working one).
Try this
Sum({1<[FSPM Month Number]={"$(=date(AddMonths(date#(max([FSPM Month Number]),'YYYYMM'),-1),'YYYYMM'))"}>} yourvaluefield)
Is it the same issue? How to calculate previous month ignoring other selection