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

How to fill empty fields based on values stored in joined table?

Dear All,

maybe you know a solution for the problem...

I have two tables, which are joined. Lets say that there is fields: ProductID, PotentialSales, Sales, Shop

PotentialSales:

OfferID

ProductID
PotentialSales

RealSales:

OfferID
ProductID
Sales
ShopID

Now, after joining these two tables, I have situation, that when there is no productid in RealSales table, than there is no ShopID as well.

Example:

OfferIDProductIDPotentialSalesSalesShopID
A1111500200ABC
A1112150
A1113200100ABC
A2111333
A2113554410FBI

OK, this is understandable, but I want to somehow copy ShopID to empty fields to calculate PotentialSales for all Shops?

Thank you in advance.

1 Reply
henrikalmen
Specialist
Specialist

You should avoid having more than one column name being the key between two tables. Links between tables in QlikView should only be made using one (1) column. In your example you have the columns OfferID and ProductID in both tables and this will create a synthetic key.

Anyway, have you checked that you actually have data in your RealSales table for OfferID A1 in combination with ProductID 112?