Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
priyav24
Creator II
Creator II

Calculation of Sum in Range??

Hello Everybody,

                             I have a requirement where i need to calculate sum between two string  values say

From Name 'A' to 'D'.Is it possible to calculate.I have also attached qlikview Document for your reference..

Thanks in Advance,

Priya

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Priya,

May be like attached sample ?

View solution in original post

4 Replies
Not applicable

sorry I cant access your .qvw file, but i hope this might help you:

What you can do is, take the field having string value in dimension and for the expression, select the option of "accumulation" in the expression tab. from there check the Accumulation __ steps back. enter the range you want , as in 4 steps or so..

Not applicable

if you want to create a range for you dimension, you can use class function :

class(MonthNum, 3,x,1) in the dimension, and take sum(Field)

this will give you a range as in:

Month         Sales

1<=x<4        10000

4<=x<7        12000

7<=x<10       11000

10<=x<13      9000

i.e. it will create a range for you dimension

priyav24
Creator II
Creator II
Author

No these selction should be dynamic .actually user needs to select the range .So is it possible in set-analysis

tresesco
MVP
MVP

Priya,

May be like attached sample ?