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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

accumulation depending on field comparison

Hey everybody,

I'm quite new with Qlikview and ran into the following problem :

I have the following table structure (simplified) :

Table orders :

  • order_id
  • part_id
  • order_quantity
  • shipping_date

Table planning

  • part_id
  • planned_quantity
  • planned_date

Now I have to build a total of planned_quantity with planned_date < shipping_date.

How do I have to do this with Qlikview, in sql I would use subquerys.

Thanks in advance for your help !

Claus

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Hi,

Did you try this? Sum(If(planned_date<shipping_date, planned_quantity)) as expression.

if your tables are associated as you mentioned, this shoild work.

Regards, tresesco

View solution in original post

2 Replies
tresB
Champion III
Champion III

Hi,

Did you try this? Sum(If(planned_date<shipping_date, planned_quantity)) as expression.

if your tables are associated as you mentioned, this shoild work.

Regards, tresesco

Not applicable
Author

whow, this has been fast,

yes it looks like working, thanks a lot !

BR

Claus