Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
rathnam_qv
Creator
Creator

set analysis

hi all,

ihv the following script..i want to change it into set analysis..

can any one give me set analysis expression for this..urgent

count(case when abc ='L' then 1 else null end )

thanks in advance!!!

Smiley

4 Replies
simondachstr
Luminary Alumni
Luminary Alumni

count({<abc={'L'}>} abc)

Does that help?

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You can't use set analysis in script, it is only for expressions. In your case, use

     Sum(If(abc = 'L', 1))

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable

Hi

I'm not over sure of what you are trying to achieve, but could you not use a simple if function as below;

if( abc = 'L', 1,0) as count

Regards


Steve

preminqlik
Specialist II
Specialist II

hi try this.

count({<abc={'L'}>}DISTINCT abc)