Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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-
1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

Try this:

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

View solution in original post

12 Replies
vishsaggi
Champion III
Champion III

May be try like

= IF(ISNULL(Indicator) = -1, 'Y', 'X')

Anil_Babu_Samineni

What is the output you are expecting in a table?

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
dapostolopoylos
Creator III
Creator III

You can set a default value for null or missing in the Result object

Capture.JPG

Father/Husband/BI Developer
greend21
Creator III
Creator III
Author

It doesn't return a result at all when there is nothing in the Indicator field

greend21
Creator III
Creator III
Author

This is what I'm trying to achieve:

   

Goal Result
IDClientIndicatorStatus
1A1X
2B1X
3C-Y
4DY

This is what happens:

   

Goal Result
IDClientIndicatorStatus
1A1X
2B1X
3C--
4D-
vishsaggi
Champion III
Champion III

Is this not what you are expecting?

Capture.PNG

greend21
Creator III
Creator III
Author

Unfortunately I'm actually using Qlik Sense but I know the Qlikview forums get more responses. I forgot about that feature in QV but it's not available in QS. I was thinking it would be more of a formula issue so I thought posting here would be helpful.

greend21
Creator III
Creator III
Author

Yes, but this is what happens.

greend21
Creator III
Creator III
Author

I tried this as an expression and it works, but I need it as a dimension so there is a selectable value there. Any idea how to get it to work as a dimension?