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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
peschu123
Partner - Creator III
Partner - Creator III

Calculate open orders before period

Hi,

I need to count the open orders before each period and the finished/started orders in each period.

Finally I want a straight table like this(Financial Year(FY) is chosen via listbox):

Dimension: FYFP

FYFP Open Start Finish
FY13/14FP0150014001450
FY13/14FP02944130
FY13/14FP03156578
FY13/14FP042262112
FY13/14FP0519117108
FY13/14FP0635110108
FY13/14FP07843886
FY13/14FP08200184101
FY13/14FP09158117
FY13/14FP1013100
FY13/14FP1130300
FY13/14FP1223600

Open Orders:

I have a "start" and a "delivery date" for each order.

To calculate the open orders in the system before each period I need to check the following

pseudocode: Count(IF("Startdate" < "FYFP" AND ([Delivery Date] > "FYFP" OR len([Delivery Date])>0), OrderID))

What I don't get is how to check the dates against the FYFP.  I use a linktable for the dates(see the screenshot).In this case I don't use Dual fields for the dates.

For example the orders started/finished in a period I simply count with:

=Count({<Datetype={POC}>}OrderID)  -  POC = Start Date

=Count({<Datetype={DDA}>}OrderID)  -  DDA = Delivery Date

Thank you in advance and best regards,

Peter

0 Replies