Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
salto
Specialist II
Specialist II

Orderbook evolution Chart

Hello Community,

     Once again I seek for your invaluable help.

     I have a table like this:

    

DateOrderDateShipmentDateAmount
01/09/201601/09/201603/09/2016

27

01/09/201601/09/201605/09/201670
02/09/201602/09/201606/09/201685
02/09/201602/09/201604/09/201663
03/09/201603/09/201606/09/201631
04/09/201604/09/201607/09/201620

    

My request is to create a chart that shows the evolution of the orderbook: the SUM of Amount ordered and Not Shipped in a per-day basis.

The result (Orderbook) should show something like this:

DateOrderbook
01/09/201697 (+27+70)
02/09/2016245 (+148)
03/09/2016249 (+31-27)
04/09/2016208 (+22-63)
05/09/2016

138 (-70)

06/09/201622 (-85-31)
07/09/20162 (-20)

The expression I have tried is similar to :

=sum ({< Date = {"<=$(=date(ShipmentDate),'DD/MM/YYYY') >= $(=date(OrderDate),'DD/MM/YYYY')"} >} OrderAmount)

But as the Date field has always the same value as the OrderDate, the calculation is not correct. Is the data model ready for this calculation? Would the solution be to create new field with all dates?

Many thanks in advance!

10 Replies
salto
Specialist II
Specialist II
Author

It was a typing mistake, sorry about that.