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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cumulative Total

Reposting this as I am unable to change status of previous discussion....

I have following report requirement:

Week No     Week Start Date     Total

1                3/1/2011                    50

2                10/1/2011                  50 + 25 = 75

3                17/1/2011                  75 + 100 = 175

I calculated week no, week start date and week end date in script as below

Weeks:

LOAD

          DISTINCT

          WeekNum,

          dual(weekstart(Date), WeekNum) as Week,

          dual(weekstart(Date + 7), WeekNum) as NextWeek

RESIDENT

          Calendar

WHERE

          Year = 2011;

and used following expression:

sum({<Year={'$(_SysCurrentYear)'},[Bill Date]={"< $(=date(NextWeek,'$(_SysDateFormat)'))"},Month=>}[Bill Value])

But this is giving error.

Can someone suggest some solution?

3 Replies
rohit214
Creator III
Creator III

hi

try this

load

Week No,

Week Start Date ,

peeek(Total)+SUm(Total) as total

from

asd.qvd;

may it helps you

thanks

rohit


Not applicable
Author

try this

load 

[Week NO],

[Week SD],

[BILL VALUE],

numsum( [BILL VALUE],peek(Total) ) as Total

resident AMT;

drop table AMT;

Not applicable
Author

My prblem solved with expression

rangesum(above(Total sum(Amount),0, rowno(Total))