Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
rsdhavle
Creator III
Creator III

greater than equal to or less than equal to in set analysis expression


How to use greater than equal to or less than equal to in set analysis expression?

Give an example

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

Greater than or equal to

sum({<AMOUNT = {">=$(vMin)"}>} AMOUNT)

Lesser than or equal to

sum({<AMOUNT = {"<=$(vMax)"}>} AMOUNT)

Greater than or equal to and lesser than or equal to

sum({<AMOUNT = {">=$(vMin)<=$(vMax)"}>} AMOUNT)

count({<Date={"$(= ‘>=‘ & ‘01/01/2010’ & ‘<=‘ & ‘31/12/2012’)"}>} Dim)


View solution in original post

4 Replies
anbu1984
Master III
Master III

Greater than or equal to

sum({<AMOUNT = {">=$(vMin)"}>} AMOUNT)

Lesser than or equal to

sum({<AMOUNT = {"<=$(vMax)"}>} AMOUNT)

Greater than or equal to and lesser than or equal to

sum({<AMOUNT = {">=$(vMin)<=$(vMax)"}>} AMOUNT)

count({<Date={"$(= ‘>=‘ & ‘01/01/2010’ & ‘<=‘ & ‘31/12/2012’)"}>} Dim)


its_anandrjs

See the below examples

For Greated then equals

=SUM({$<Date = {'>=$(=AddMonths( YearStart (Today()),-12))'}>}Sales)

For Less then equals

=SUM({$<Date = {'<=$(=AddMonths( MonthEnd (Today()),-12))'}>}Sales)

Or combination of both

=SUM({$<Date = {'>=$(=AddMonths( YearStart (Today()),-12)) <=$(=AddMonths( MonthEnd (Today()),-12))'}>}Sales)

But depends on the condition where you apply

SunilChauhan
Champion II
Champion II

sum({<Datefield={">=$(=Datefield)<=$(=Datefield)"}>}  Amount)

or  greater than or equal to

sum({<Datefield={">=$(=Datefield)"}>}  Amount)

or

less than or equal to

sum({<Datefield={"<=$(=Datefield)"}>}  Amount)

hope this helps

Sunil Chauhan
Szymon
Contributor
Contributor

Currently, this solution doesn't work.