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

Help needed

Dear All,

I have a problem that I want to calculate the Average Amount of next 3 coming row in a straight table chart but 1 Dimension excluded, on every row like the table

I want to exclude the Dimension Design, SNo. in calculation of RangeAvg


Customer

DesignMachineSNo.

Sales

Amount

sum

next  3 rows

Average

AD-1Mc-11

50

7035
AD-1Mc-12452525
AD-1Mc-132500
AD-1Mc-247500
BD-5Mc-15402525
BD-5Mc-162500
BD-5Mc-273000
CD-1Mc-184000
CD-1Mc-29305050
CD-2Mc-2105000
DD-1Mc-1112000

SNo. value of this column is comming from sql query [ Row_Number()  ], it is a running no

Last column is my desired result

I am attaching QVW sample here

thanks & regars

bb

1 Solution

Accepted Solutions
Not applicable
Author

There is some discrepency in the data above and data in attachment. Anyhow this can be done using rangesum(below (expression),1,3) and rangeavg(below (expression),1,3). Attached the example using your attachment.

Kiran.

View solution in original post

8 Replies
Not applicable
Author

There is some discrepency in the data above and data in attachment. Anyhow this can be done using rangesum(below (expression),1,3) and rangeavg(below (expression),1,3). Attached the example using your attachment.

Kiran.

Not applicable
Author

hi, Kiran

thanks

bb

Not applicable
Author

hi, kiran

can I exclude one or two dimensions when calculating rangeavg

thanks & regards

bb

Not applicable
Author

Use Total <Dim1,Dim2> after the set analysis in the expression.

Kiran.

Not applicable
Author

hi, kiran

thanks for very quick reply,

I am not aware with set analysis can you please describe it

Please tell me "Is there any document related to SET ANALYSIS"

thanks & regards

bb

Not applicable
Author

Enclosed the a quick update.

Kiran.

Not applicable
Author

Hi, Kiran

thanks again for very quick reply but I found some thing is missing in the sample sanded by you, It the same sample as sanded by you earlier nothing new in it.

Please tell is there any document related to the Set Analysis, if yes then from where I can get it.

Thanks & Regards

bb

Not applicable
Author

After checking the document I found that there is not set analysis. So I just updated with total expression.

Kiran