Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rsdhavle
Creator II
Creator II

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
Champion

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.