Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

nareshthavidishetty
Contributor III

rolling months not working properly

Hi,

I have used the below logic to roll back to 12 months.

example:

But when i select  like Mar2018 it is roll back to 12 months.

But when i select Feb2018 a few months data were missing.

Logic Used:

if(isnull(Sum({$<[Month Abbr]=, Year=, [Month Year]=,[Quarter Name]=, [Calendar Date]={"$(=date(AddMonths(monthend(floor(Max([Calendar Date]))),-5),'DD-MMM-YYYY'))"}>}[# AR Open])),null(),

Sum({$<[Month Abbr]=, Year=,[Month Year]=, [Quarter Name]=, [Calendar Date]={"$(=date(AddMonths(monthend(floor(Max([Calendar Date]))),-5),'DD-MMM-YYYY'))"}, [Age Days 90 Flag] = {'Y'},[Monthly Snapshot Flag]= {1},[Conformed Status] -= {'Monitoring*', 'Effectiveness Check'}>}[# AR Open])/

  Sum({$<[Month Abbr]=, Year=,[Month Year]=, [Quarter Name]=,[Calendar Date]={"$(=date(AddMonths(monthend(floor(Max([Calendar Date]))),-5),'DD-MMM-YYYY'))"},[Monthly Snapshot Flag]= {1},[Conformed Status] -= {'Monitoring*', 'Effectiveness Check'}>}[# AR Open]))*100

Thanks..

2 Replies
agomes1971
Valued Contributor II

Re: rolling months not working properly

Hi,

please read this:

Set Analysis for Rolling Periods

HTH

André Gomes

ChennaiahNallani
Contributor III

Re: rolling months not working properly

share sample qvf