Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nkumarkanduri
Contributor II
Contributor II

Set Analysis

Hi I am trying to find the  count of unique number of countries which have the sum of sales from year 2009 greater than 35000. But I ended getting 0 as my result. But there countries with sum of sales from 2009 greater than 35000. Please find the code:

=count({(<country={"=SUM({<year={'>=2009'}>}sales)>13000"}>)} distinct country)

 

 

1 Solution

Accepted Solutions
sunny_talwar

Try this

=Count({<country = {"=Sum({<year={[>=2009]}>}sales) > 13000"}>} distinct country)

View solution in original post

6 Replies
nkumarkanduri
Contributor II
Contributor II
Author

Sorry it is not 13000 it is 35 in the code part

Vegar
MVP
MVP

It could be syntax related,  I made some minor changes to the parentheses in your expression

=count({<

country={"=SUM({<year={'>=2009'}>}sales)>13000"}

>} distinct country)

 

nkumarkanduri
Contributor II
Contributor II
Author

The code is working if we select only one year but when we are using ">=2009" in place of just "2009" it is not working.

sunny_talwar

Try this

=Count({<country = {"=Sum({<year={[>=2009]}>}sales) > 13000"}>} distinct country)
sunny_talwar

Or this

=Count({<country = {"=Sum({<year={"">=2009""}>}sales) > 13000"}>} distinct country)
nkumarkanduri
Contributor II
Contributor II
Author

Thanks Sunny, The code is working.