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: 
bnelson111
Creator II
Creator II

Range Sum Expression Help.

I have a Straight Table as below.

sssssssssssss.png

As you can see the WIP is a sum from ODBC table against the Pcodea and i'm attempting to have a range sum of it down dating against the new order qty (which is the customers orders). Problem is it continues to down date against a different Pcodea. As you can see it continues when Pcodea changes from 230325380 to 230325432. Code Below.

ssss.png

Any ideas?

14 Replies
bnelson111
Creator II
Creator II
Author

Hopefully to have a share. file is send.qvd

let me know if you have received, never loaded file before..

bnelson111
Creator II
Creator II
Author

bnelson111
Creator II
Creator II
Author

Might have it.

([Jobline for Customer Aisling;.OutstandingQty])-rangesum(above(TOTAL(SUM({<[Pcodea]>}[new_order_qty])),0,NoOfRows(TOTAL)))

bnelson111
Creator II
Creator II
Author

No its continuing on different pcodea ......

sssssss.png

bnelson111
Creator II
Creator II
Author

Thankyou for all your help very much appreciated, just got it. Rebuilt the chart and the expression was fine.

Again thankyou.  

sum([Jobline for Customer Aisling;.OutstandingQty])+sum([Inventory Stock For Customer Report Aisling;.InventoryQty]))
-
rangesum(above(sum({<[Pcodea]>}[new_order_qty]),0,NoOfRows(TOTAL)))

aaaaaaaaaaaaaaaa.png