Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

1 Solution

Accepted Solutions
tresesco
MVP
MVP

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
tresesco
MVP
MVP

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