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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
abc_18
Creator II
Creator II

how to get rolling data

Hi,

I have data in excel like below. how to get that output column in qvw

   

MonthYearCardYearCardMonth           os           csrunning totaloutput
Jan-14201411029-19(running Total+os)-cs
Feb-1420142325-22-41
Mar-1420143619-13-35
Apr-1420144424-20-33
May-14201451128-17-37
Jun-14201461124-13-30

attaching excel file also.

please suggest guys.

formula I have mentioned in excel sheet.

4 Replies
Anil_Babu_Samineni

Like this?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Frank_Hartmann
Master II
Master II

try this in script:

Previous([running total])+os-cs as OutputNew

MK_QSL
MVP
MVP

Data:

Load

Date#(MonthYear,'MMM-YY') as MonthYear,

CardYear,

CardMonth,

os,

cs

Inline

[

MonthYear CardYear CardMonth os cs

Jan-14 2014 1 10 29

Feb-14 2014 2 3 25

Mar-14 2014 3 6 19

Apr-14 2014 4 4 24

May-14 2014 5 11 28

Jun-14 2014 6 11 24

] (delimiter is \t);

Dimension

MonthYear


Expresssions

SUM(os)

SUM(cs)

SUM(os)-SUM(cs)

Above(SUM(os)-SUM(cs)) + SUM(os) - SUM(cs)

abc_18
Creator II
Creator II
Author

I have achieved desired output using this formula.

=RangeSum(Above(TOTAL Column(1) - Column(2), 0, NoOfRows(TOTAL)))

how can I include monthyear field in this , so that upon selection of monthyear this column should change.