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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rolling 3months

Hi QV,


I want to make a Bar chart For total amount in for last 3months.
For example if user selects Report_Month= 1214 then i should show 3bars for 1214,1114,1014.
I created 2 other fields like Prev_Report_Month1 & Prev_Report_Month2 in script - which calculates the Previous MonthYear values.

In chart i Used below expressions.
dimension : Report_Month (1214,1114,1014,0914 etc..)
Expression1:Sum(AMOUNT)
Expression2: sum({<Report_Month={"$(=num(Only(Prev_Report_Month1),'0'))"}>}AMOUNT)
Expression3: sum({<Report_Month={"$(=num(Only(Prev_Report_Month2),'0'))"}>}AMOUNT)

But i am getting "0" for both Expression2 & 3.

Labels (1)
10 Replies
Not applicable
Author


Yes. This is one way of doing..

Thank you.