Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
greend21
Creator III
Creator III

Join and Nulls

I have two tables that automatically join on ID (Table Viewer shows two tables), where not all ID's in Table 1 are in Table 2. I thought when when I put this information in a table that the '-' was representing a null but if do IsNull(Indicator) I only get a result where the indicator exists. If the indicator represents condition X, how can I show the opposite as condition Y?

For example, I tried If( Indicator = 1, 'X', 'Y') but nothing is returned for fields where the Indicator is '-'.

   

TABLE 1
IDClient
1A
2B
3C
4D

   

TABLE 2
IDIndicator
11
21

   

Result
IDClientIndicator
1A1
2B1
3C-
4D-
12 Replies
vishsaggi
Champion III
Champion III

Try this:

= Aggr(IF(ISNULL(NoteInd)=-1, 'Y', 'X'), ID, ID [Status])

greend21
Creator III
Creator III
Author

Works perfectly! Thank you!

Anil_Babu_Samineni

If you are expecting in Front end, Try this way?

If(Match(Indicator,1),'X','Y')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful