Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculation for in month using set analysis

I have a statement which calculates the delayed orders as below;

Sum(Aggr(If((inLeveransDatum - Lev_Leveranstid)> Villkor_inlev, 1, 0), [%InLevNr]))' with month as dimension.

i wish for this statement to be for the previous month in a table without the month dimension but my syntax is incorrect

any help would be greatly appreciated;

Sum(Aggr{<inLeveransDatumMonth={'>=$(=max(inLeveransDatumMonth)-1)<=$(=max(inLeveransDatumMonth)-1)'}>} If((inLeveransDatum - Lev_Leveranstid)> Villkor_inlev, 1, 0), [%InLevNr]))

Best

Brad

Labels (1)
1 Reply
Not applicable
Author

Brad,

Aggr does not accept the set analysis. Sum does.

So I would move the Set Analysis statement into the the Sum section.

Fabrice