Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
it's my first app in Qlik Sense, and I'm trying to understand how table associations work.
I have two tables:
InvoiceRows (InvoiceDate, ProductID, RowType, Quantity, Price)
PurchasePrice (ProductID, StartDate, EndDate, Price)
How can I join those two tables, to know the purchase price valid at the InvoiceDate (e.g. InoviceDate must be included between StartDate and EndDate for the same ProductID)?
I would like that if a product in the invoice has no valid purchase price, it does not appear (e.g. left join).
Thank you very much!
Fabio
Hi,
use
Inner Join IntervalMatch ( InvoiceDate, ProductID) LOAD StartDate, EndDate , Price Resident PurchasePrice ;
See
Regards
Hello,
thank you for your reply!
The third parameter of LOAD shouldn't it be the ProductID, such as:
Inner Join IntervalMatch ( InvoiceDate, ProductID) LOAD StartDate, EndDate , ProductID Resident PurchasePrice ;
Thank you!