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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
timanshu
Creator III
Creator III

How to write Greater than symbol in set analysis

I have a table with bucket field and sales field ->

Bucket    Sales

10-20     100

20-40      30

40-50      50

>50         120

I want to show sale of only >50 in a chart through set analysis. How can I do. Since writing > in set analysis , >50 as whole is not considered as a field value.

Please help.

17 Replies
sergio0592
Specialist III
Specialist III

Hi, try with :  =sum({<Bucket={">50"}> }  Sales)

antoniotiman
Master III
Master III

Hi,

Sum({<Field={'>50'}>} Value)         //or {'>=50'}

Regards,

Antonio

timanshu
Creator III
Creator III
Author

does not work

timanshu
Creator III
Creator III
Author

does not work

bharani8
Creator III
Creator III

Try this..

=sum({<Bucket >= {'50'}> }  Sales)

bharani8
Creator III
Creator III

I think.. what jean-baptiste‌ mentioned will work..

tresesco
MVP
MVP

Is bucket a script generated field? Or, it's a calculated dimension? If calculated dimension, what expression have you used to create that? 

arvind_patil
Partner - Specialist III
Partner - Specialist III

Hi Timanshu,

Try below:


=sum({<Bucket={">50"}> }  Sales)


Thanks,

Arvind Patil

Peter_Cammaert
Partner - Champion III
Partner - Champion III

If these don't work, please post an example document for us to check out.

If you want to get rid of this situation quickly, you can always create a parallel field to Bucket that contains unambiguous non-display values, like:

Bucket  Bucket2    Sales

10-20   10TO20     100

20-40   20TO40     30

40-50   40TO50     50

>50     GT50       120

and test for Bucket2 in set analysis like:

=Sum({<Bucket2 = {'GT50'}>} Sales)