Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have date in format sales date :- 'YYYY-MM'
Now i want to create six months flag..can you please tell me logic.
Kind Regards
Manu
Hi Manu,
Then you can do this in the set analysis:
Sum({$< Date = {">=$(=AddMonths(Date,-6) <=$(Date)"}>} Sales)
Jordy
Climber
Hi Manu,
Do you mean an indicator that tells you what the last six months are in your calendar?
Then you can do the following:
IF(Date(Addmonths(Today(),-6),'YYYY-MM') >= SalesDate,1,0) as _indRLSM // RollingLastSixMonths
You can use this in set analysis like: Sum({$< _indRLSM = {1}>}Sales)
Jordy
Climber
Hi Jordy,
Unfortunately i have no calendar in my model,i have only this field in actual table,
will it work there ?? in table
Hi Manu,
Then you can do this in the set analysis:
Sum({$< Date = {">=$(=AddMonths(Date,-6) <=$(Date)"}>} Sales)
Jordy
Climber