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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
venkatg6759
Creator III
Creator III

Count if on button

Hello all,

i am trying to get this expression by using button.

=aggr(Count([Security Name]),[% GUID]) Where i need only 1 to be selected

if(Count(SecurityName)=1,SecurityName)

i need 1 to be selected on click of button.

I tried using select in field but unable to get the answer.

Any helpful ideas?

Thanks in Advance,

Venkata

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use this function:

=GetSelectedCount(MyField)

let me know

venkatg6759
Creator III
Creator III
Author

That doesn't work!

i need number, individual security to be selected

suppose if count  gives you 1,2,3,4

i need 1 to be selected from the count .

Not applicable

Try:

If(GetSelectedCount(SecurityName) = 1, aggr(Count([Security Name]), [% GUID]))

alexandros17
Partner - Champion III
Partner - Champion III

=If(GetSelectedCount(SecurityName)=1, SecurityName)

venkatg6759
Creator III
Creator III
Author

I tried but it doesn't ,

I created a listbox expression by

aggr(Count([Security Name]), [% GUID]))

which gave me 1 ,2,3 .........

i don't want to go that list box and select 1 ,instead i want to click the button and select 1