Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum Expression that exclude partial active selection.

Hi Everybody

I create 2 gauge graph to display turnover of our business agent by quarter.

I generally select the year, the quarter and salesman. Now in the first graph I show the selected quarter, in the other I want to display the sum of all available quarter in the year for that salesman.

For example, let's consider 2009, now we are in the fourth quarter. If I select Q4 and John as agent, the first graph show the sum of this period for John, but the second gauge must show the sum of all quarter, indipendent of the active quarter selection.

My problem is the second gauge, How Can I obtained this sum without consider quarter?

This is the code I use, where N indicates "credit Note", to sum turnover

sum(If([Tipo Doc.]='N',Netto*-1,Netto*1))

I tried to put "1" before "If" but it excludes all selections and this is not what I need, I need to exclude only quarter selection.

Thanks

Rick

1 Solution

Accepted Solutions
Not applicable
Author

Try this:

sum({<Quarter=>} If([Tipo Doc.]='N',Netto*-1,Netto*1))


View solution in original post

2 Replies
Not applicable
Author

Try this:

sum({<Quarter=>} If([Tipo Doc.]='N',Netto*-1,Netto*1))


Not applicable
Author

Perfect, it works.

thanks a lot