Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Range Sum & Above function working wrong when supress zero values option cheked

Dear All,

we want to add above sum of rows in pivot table so the expression is written as

if(Region=23, RangeSum(above(TOTAL column(1),1,22)), Data)

it's coming correct when suppress zero values is un-checked for Region = 23 as 158

when we check suppress zero values the result  coming wrong for region = 23 as 256

is it bug or please help if any other solution available.

attached qvw file for your reference.

  

Region qty
11
22
3-
4-
55
66
7-
8-
9-
1010
1111
1212
1313
14-
15-
16-
1717
1818
19-
2020
2121
2222
23158
2424
2525

  

Region qty
11
22
55
66
1010
1111
1212
1313
1717
1818
2020
2121
2222
23256
2424
2525

Thanks in advance.

18 Replies
Not applicable
Author

Dear All,

sorry,  ignore excel Data wrongly pasted in previous reply and find the excel data below

  

RegionData
11
22
3
4
55
66
7
8
9
1010
1111
1212
1313
14
15
16
1717
1818
19
2020
2121
2222
2323
2424
2525
MK_QSL
MVP
MVP

Why you want to use Column(1) and not SUM(Data)..

Please explain..

Not applicable
Author

i can't use sum (data) model in actual development because the above rows result is coming based on the different big formulas and in that also column(x) is used.

so is there any alternate way to sum above rows using column(1)

any way thanks for your response and if there is no solution its ok and i will try with alternate options.

Thanks ......

sunny_talwar

if there is no solution its ok and i will try with alternate options.

Alternative is to use variable my friend, but you seem to be ignoring me and my suggestion

Not applicable
Author

sorry forgot to reply you previously. already tried using variable also but not working same problem

sunny_talwar

May be share a trimmed down and anonymised version of your dashboard

Preparing examples for Upload - Reduction and Data Scrambling

Uploading a Sample

Not applicable
Author

can you please share personal e-mail ID as am unable to attach any file

sunny_talwar

I have added you as a connection. Send me a private message and I will share my email with you.

Anil_Babu_Samineni

From Region, Qty What was the expected output?

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