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:
The pallet despatched can be linked back to either the Production table or Goods In table using the unique pallet number:
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:
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.