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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Intervalmatch and Link Table?

Hello everyone!

I'm having difficulties with my data model and maybe someone can help!  I have two fact tables:

     1. Shipment lines:  Has a date field, and transaction quantities

     2. Pay Period Ending:  Has an Ending Date, and a number of productive hours assigned.

I want to find out what the ratio of    Sum([SHIPPED-QTY]) / Productive hours within a week.

To establish which PPE period a transaction is assigned to, I used an Intervalmatch.  However I am now caught in a circular loop I do not know how to get rid of.  After some researching, I think it has something to do with creating a Linktable?

Does anyone have any ideas?  I've attached a .qvd

Thank you all in advance!Circular reference.PNG.png

1 Solution

Accepted Solutions
Not applicable
Author

I may be onto something... using a Join to "flatten" out the data model, and remove the intervalmatch table...

View solution in original post

2 Replies
Not applicable
Author

To further clarify:

Shipdate is used in WHSHIPLINE to find out which PPE_Period each transaction is in.

There are multiple COMPANYs that have different XXX_Hours values as well as transaction lines...

Not applicable
Author

I may be onto something... using a Join to "flatten" out the data model, and remove the intervalmatch table...