Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to do this in set analysis?

Hi, in my application, there is a list box for user to choose which companies they would like to exclude from the chart. My chart is used to display the total revenue of each company for each fiscal year. How should i write the set analysis in order to achieve the purpose of excluding those companies selected by the user? Thanks much, I really need a solution asap. Thanks in advance!

1 Solution

Accepted Solutions
SunilChauhan
Champion
Champion

try this

=if(getselectedCount(fieldnamein seleection)>0,Sum({1-$} Revenue),sum(amountfieldname))

or see the attached file for example

Sunil Chauhan

View solution in original post

2 Replies
mazacini
Creator III
Creator III

If I understand correctly, you want to select companies from a list box, and exclude those selections from a chart, which I assume will default to show all companies?

Could you use sum({1-$}Revenue). This will give the inverse of the current selection ie everything that the current selection excludes.

Note that if you are selecting on more than one dimension, it will exclude those selections as well.

SunilChauhan
Champion
Champion

try this

=if(getselectedCount(fieldnamein seleection)>0,Sum({1-$} Revenue),sum(amountfieldname))

or see the attached file for example

Sunil Chauhan