9 Replies Latest reply: Jan 16, 2013 10:09 AM by Brett Thatcher

# Set analysis problem

I'm trying to create a chart that only brings in a value for certain varaible, I've created the expression below

Sum({\$< ACCAccount ={12170,12340,12350,13910,"2A600","2AB00"}>} GLBal.YTDActual)

This does give me the information but it is split by each ACCAaccount, what I need is one total for all 7 codes

• ###### Re: Set analysis problem

Try the TOTAL qualifier:

Sum({\$< ACCAccount ={12170,12340,12350,13910,"2A600","2AB00"}>} TOTAL GLBal.YTDActual)

• ###### Re: Set analysis problem

No that didn't work, seemed to bring through the tatal for all the ACCAaccount not just the 7 I'm interested in.

• ###### Re: Set analysis problem

Hi,

one thing i noticed is that you are always asking for 7 codes but in set analysis there are only 6 codes

And please come with a complete briefing.

Thanks

• ###### Re: Set analysis problem

Sorry only 6 codes, I miss counted

• ###### Re: Set analysis problem

It should return the total only for the set of values, but it will display this total for all dimension values, not only for the values in your set.

If you are going to use another aggregation in this expression with the same set, e.g. to calculate a percentage, this should overcome the issue:

= Sum({\$< ACCAccount ={12170,12340,12350,13910,'2A600','2AB00'}>} GLBal.YTDActual) /

Sum({\$< ACCAccount ={12170,12340,12350,13910,'2A600','2AB00'}>} TOTAL GLBal.YTDActual)

Or just define that you only want to see the total for the dimension values in question:

if( match(ACCAcount,'12170','12340','12350','13910','2A600','2AB00'), Sum({\$< ACCAccount ={12170,12340,12350,13910,'2A600','2AB00'}>} TOTAL GLBal.YTDActual) )

• ###### Re: Set analysis problem

"but it is split by each ACCAaccount"

What is the dimension in the chart?

• ###### Re: Set analysis problem

The two dimesions are ACCAaccount and Period

• ###### Re: Set analysis problem

If you want one total for all 6 codes, then I would remove the ACCAccount field as a dimension.

• ###### Re: Set analysis problem

Thnaks resolved my problem