Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ulyxess1983
Contributor
Contributor

Rangesum or ?

Hi folks,

Please, give an idea how to solve this:

I need chart (table pivot or straight) with 3 dimensions - Date, RefId, Customer and two measures - Ordered and Delta

ordered is just a sum of ordered amount on a date for an order of customer

delta should take current stock minus ordered plus receipt or transfer. delta should be cummulated through all the table, so I'll be able to see when we'll be out of stock.

using this:

sum(StockPcs)+sum({$<Status = {'Sales Orders'}>} QtyPcs)+sum({$<Status = {'Receipt', 'Transfer'}>} QtyPcs)+rangesum(below((sum({$<Status = {'Sales Orders'}>} QtyPcs)+sum({$<Status = {'Receipt', 'Transfer'}>} QtyPcs)), -1, 2000)))

yes, i could use "above" instead of "below"

and if I use 1 dimension only - everything works fine. so, the only question is - how to make it with 3 dimensions?

example sheet attached.

thanks in advance.

0 Replies