Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
abhi1693r
Contributor II
Contributor II

COUNT A FIELD BASED ON NULLS in another field

Hello,
I had a similar issue. So I have two columns, PART AND CUBES, with one to many relationship.(one PART can have many CUBES or a PART can have no CUBE).
Scenario: If I select 3 PARTS which have 2 CUBES, wherein 2 PARTS have 2 CUBES and 1 PART has no CUBE. I want a count of all the CUBES plus any PART which has no CUBES.

PARTCUBES
SW10011415TV
DC10031323GT
BW1002 

 

@ToniKautto 

So the count should be 2+1=3.
How can I implement this?

Regards,
Abhishek

1 Solution

Accepted Solutions
dwforest
Specialist II
Specialist II

Count(CUBES) + Count({<PART={"=IsNull(CUBES)"}>}PART)

View solution in original post

1 Reply
dwforest
Specialist II
Specialist II

Count(CUBES) + Count({<PART={"=IsNull(CUBES)"}>}PART)