Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
stig1984
Creator II
Creator II

Seeking data from one of two sources

Could someone please assist me in finding data in one of two tables - ie; if data is not in first table then look for alternative field in second table.

The scenario is this:

I have three data sources in my Qlikview report - Sales, Goods In and Production.

The Sales data returns details of the pallet despatched with a unique number (consignment / line / pallet number such as 100001/1/1).

This pallet could have been a pallet straight from Goods In or could have gone through production (which changes the unique number).

For example:

Capture1.PNG

The pallet despatched can be linked back to either the Production table or Goods In table using the unique pallet number:

Capture2.PNG

What I need to do is add an expression to the sales table so that the pallet is linked back first to production to return total cost per case, but if the pallet has not gone through production then link back to the goods in to return cost per case as below:

Capture3.PNG

I have tried to do this using the isnull(only()) expressions but with incorrect results - I am trying to achieve this in a straight table initially but would need to do similar results in bar charts etc with more limited dimensions available.

Any assistance greatly appreciated.

0 Replies