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: 
MateP
Contributor II
Contributor II

How to identify missing value in column (without aggregation function)?

Hi everyone,

unfortunately I could not find an answer to this question in the forum yet. I have a table X associated with table Y. I would like to primarily take the cost from table Y (the up-to-date cost values are to be found here) and if it is not available, only then from table X.

For some IDs from table X the entry in table Y is missing and theerefore the cost data can only be found in table X. Sample data:

Table NameIDMonthly_Cost_X
X1100
X2450
X3200

 

Table NameIDMonthly_Cost_Y
Y1100
   
Y3200


For this purpose I was trying to use the MissingCount function, however, this only works with aggregates. What I would finally need in the end is something like this: 

Sum(if(MissingCount(Monthly_Cost_Y)>0, Monthly_Cost_X, Monthly_Cost_Y))
For the sample date I would expect the following sums: ID 1:100, ID 2: 450, ID 3: 200.
Could you please suggest me a solution to this problem?

Thanks and BR
Máté

Labels (1)
0 Replies