Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to write this Set analysis

Hi Experts,

I have two tables:

tb1:

MemberId, Flag2

1,1

2, null value

tb2:

MemberId,Flag, Usage

1,1,100

2,2,200

It is clear that the MemberId is used as connection Key.

Now I want to use Set analysis to get the usage whose Flag2 is Null.

I use this one =sum({<Flag2={'=IsNull(Flag2)'}>} Usage), but it does not work, how to write it? And I want it show in Text Object.

Thanks.

1 Solution

Accepted Solutions
sbaldwin
Partner - Creator III
Partner - Creator III

Hi, You could try something like this:

=count( {<MemberId = e({<Flag2 = {'>0'} >} MemberId)  >} MemberId)

in a table against usage or in a text box if there is only one:

=only( {<MemberId = e({<Flag2 = {'>0'} >} MemberId)  >} Usage)

Thanks

Steve

View solution in original post

1 Reply
sbaldwin
Partner - Creator III
Partner - Creator III

Hi, You could try something like this:

=count( {<MemberId = e({<Flag2 = {'>0'} >} MemberId)  >} MemberId)

in a table against usage or in a text box if there is only one:

=only( {<MemberId = e({<Flag2 = {'>0'} >} MemberId)  >} Usage)

Thanks

Steve