Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
bdroesch
Contributor
Contributor

IsNull not working if ID not in a table

Hi,

I have a table with a list of IDs and their respective U.S. state. I have another table that has a list of IDs and the date of last contact. But the second table doesn't contain every ID that is in the first table.

IDState
1NY
2NY
3MA
4NJ
5NJ
6NY
7NY

 

IDLast Contact Date
11/1/2018
25/1/2018
3-

I want to create a pivot table that outputs whether I have a Last Contact Date for all IDs (so all 7).  So I created the dimension listed below and did Count(ID) as my measure.

IF(IsNull([Last Contact Date]) ,'N','Y')

I expected to get 2 for 'Y' and 5 for 'N'.  Instead I got the following:

 

FlagCount( ID)
Y2
N1
-4

For the 4 loans that do not exist in the second table, why doesn't the IsNull function tag them as 'N'?


Thank you,

Brian

1 Reply
ogautier62
Specialist II
Specialist II

Hi,

it seems to be specific to Qliksense,

here some other formulas maybe could work :

regards