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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis

Hi Qlikers,

I want to Write the same condition in Set analysis

Count(distinct(if([%Indent status code]='K' and IsNull([PR No]),[%Indent Line Number])))

1 Solution

Accepted Solutions
preminqlik
Specialist II
Specialist II

try with this

Count(distinct {<[%Indent status code]={'K' } ,[%Indent Line Number]={'=IsNull([PR No]'}>}[%Indent Line Number])

View solution in original post

9 Replies
preminqlik
Specialist II
Specialist II

try with this

Count(distinct {<[%Indent status code]={'K' } ,[%Indent Line Number]={'=IsNull([PR No]'}>}[%Indent Line Number])

er_mohit
Master II
Master II

try this

count(distinct {<[%Indent status code]={'K'}>*<[PR No]={' '}>}[%Indent Line Number])

or this way

count(distinct {<[%Indent status code]={'K'},[PR No]={' '}>}[%Indent Line Number])

preminqlik
Specialist II
Specialist II

try also

Count(distinct {<[%Indent status code]={'K' } ,[PR No]={"null()"}}>}[%Indent Line Number])

Anonymous
Not applicable
Author

Hi Prem,

I;m tried your Condition but it is not working...

Anonymous
Not applicable
Author

Hi Mohit,

I'm tried your Condition but it is not working...

MayilVahanan

Hi

Try like this

Count(distinct {<[%Indent status code]={'K' } ,[PR No]-={"*"}>}[%Indent Line Number])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Hi Mayil,

I'm tried your Condition but it is not working...

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Set analysis is equivalent to automating selections made from the front end. When selecting items, you cannot select null values. In the same way, set analysis cannot select null objects. You can either do this:

Count({<[%Indent status code]={'K' }>} distinct If(IsNull(PR_No), [%Indent Line Number]))

or enter the phrase

NullAsValue PR_No;

to your load script before the LOAD statement that loads the PR_No values. Then use:

Count({<[%Indent status code]={'K'},[PR No]={''}>} distinct [%Indent Line Number])

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
preminqlik
Specialist II
Specialist II

then try this

Count(distinct {<[%Indent status code]={'K' }*{'=IsNull([PR No]'}>}[%Indent Line Number])