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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with a straight table calculation

Greetings :

I have a straight table that looks like this :

SalesRep(Dim)Year(Dim)Month(Dim)SalesLevelA(Exp) SalesLevelB(Exp)PreviousMonthSalesLevelA(Exp)
Bob2013

12

100.00200.00

Need sales form 11/2013 remove to keep it simple

Bob20141400.00

2300.00

100.00
Bob20142323.003233.00400.00
Mary201312701.00605.00Need sales form 11/2013 remove to keep it simple
Mary20131323.00415.00701.00

My Question is how do I get the data to populate the PreviousMonthSalesLevelA(Expression).

When I do it in a set expression like: Sum({$<Posting_PeriodID={'=$(CurrentPeriodID - 1)'}>} Amount)

I end up getting a total on every row that matches August which right now is the current period -1.

Any help would be greatly appreciated.

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can't use set analysis (at least not easily) this way. The set is calculated at the chart level, not row level. See this document for more information: Calculating rolling n-period totals, averages or other aggregations


talk is cheap, supply exceeds demand
Not applicable
Author

That is interesting, but I am still confused on how to tell it I do not want to accumulate but just display the previous rows amount.