Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

mandilicious
New Contributor III

Qliksense cal

Hi All

Please help me out i have below table. in this table i need to calculate like: if Due Date is D+0 it should count from 1 upwards e.g total is 1+2+2+1 = 6 and  if Due Date is D+3 it should count from 4 upwards e.g total is 2  = 2. please help i cant get the logic behind that?

Thanks

1 Solution

Accepted Solutions
dan_sullivan
Contributor II

Re: Qliksense cal

IF([Due Date] = 'D+3' , Count({$<[Reason_Aging]={'>=4'}>}[DimensionYouAreCounting]),

IF([Due Date] = 'D+1' , Count({$<[Reason_Aging]={'>=2'}>}[DimensionYouAreCounting]),

IF([Due Date] = 'D+2' , Count({$<[Reason_Aging]={'>=3'}>}[DimensionYouAreCounting]) )))

Something like this i would guess.

4 Replies
dan_sullivan
Contributor II

Re: Qliksense cal

what is the dimension being used to create third column of your example?

mandilicious
New Contributor III

Re: Qliksense cal

HI Dan

Thanks for your respond i used  Reason_Aging as my dimension.

Thanks

dan_sullivan
Contributor II

Re: Qliksense cal

IF([Due Date] = 'D+3' , Count({$<[Reason_Aging]={'>=4'}>}[DimensionYouAreCounting]),

IF([Due Date] = 'D+1' , Count({$<[Reason_Aging]={'>=2'}>}[DimensionYouAreCounting]),

IF([Due Date] = 'D+2' , Count({$<[Reason_Aging]={'>=3'}>}[DimensionYouAreCounting]) )))

Something like this i would guess.

mandilicious
New Contributor III

Re: Qliksense cal

Thanks Dan it is working perfectly.