Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
sked9111
Contributor II
Contributor II

How can i transform Above(TOTAL) into Script using peek / previous

Hi everyone!

My question it's in the subject.

Basically the expression i'm using is this:  RangeSum(Above(TOTAL percentTest ,0 ,RowNo(TOTAL)))

So how can i bring that expression into script using peek/previous or any other alternatives?

Labels (1)
1 Solution

Accepted Solutions
sked9111
Contributor II
Contributor II
Author

I managed to solve here. So basically i needed to resident table with the column (table1) and over that table i could make the accumulative sum with order by.

View solution in original post

3 Replies
edwin
Master II
Master II

there must be a reason you are doing this - is it performance?  if so this could mean you have a huge data set - peek would be very slow - you can use  a bridge table.  having an idea how our data is modeled would be great help.  maybe post some sample data or QVF with test data  

sked9111
Contributor II
Contributor II
Author

Hi @edwin ,

I attached the data. 

So, i'm trying to make an accumulative column in script using this expression:

RangeSum(percentTest ,peek('AcummulativeSum')) as AcummulativeSum

but somehow qlik can't accumulate correctly like in front :

RangeSum(Above(TOTAL percentTest,0,RowNo(TOTAL))) //front - end

sked9111
Contributor II
Contributor II
Author

I managed to solve here. So basically i needed to resident table with the column (table1) and over that table i could make the accumulative sum with order by.