Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Getting - instead of 0 or 1

=IF($(=Concat(DISTINCT ‘GetSelectedCount(‘ & $Field & ‘)’, ‘ + ‘)) = 0, 1, 0)

1 Solution

Accepted Solutions
Gysbert_Wassenaar

This will give you a count of the current selections:

=$(=concat('getselectedcount([' & $Field & '])','+'))

But if you only want to know if there are any selections, try: if(len(getcurrentselections)),1,0)


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
sivarajs
Specialist II
Specialist II

Try this IF(Concat(DISTINCT GetSelectedCount($Field), '+') = 0, 1, 0)

Not applicable
Author

Thanks but it is only showing 1and never 0

Gysbert_Wassenaar

This will give you a count of the current selections:

=$(=concat('getselectedcount([' & $Field & '])','+'))

But if you only want to know if there are any selections, try: if(len(getcurrentselections)),1,0)


talk is cheap, supply exceeds demand
Not applicable
Author

Great it works.I wanted to get if there are any selections or not.

Regards,

Gaurav