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

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

1 Solution

Accepted Solutions
kouroshkarimi
Creator III
Creator III

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

View solution in original post

9 Replies
swuehl
MVP
MVP

Try the TOTAL qualifier:

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

Anonymous
Not applicable
Author

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

sujeetsingh
Master III
Master III

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

Anonymous
Not applicable
Author

Sorry only 6 codes, I miss counted

swuehl
MVP
MVP

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) )

kouroshkarimi
Creator III
Creator III

"but it is split by each ACCAaccount"

What is the dimension in the chart?

Anonymous
Not applicable
Author

The two dimesions are ACCAaccount and Period

kouroshkarimi
Creator III
Creator III

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

Anonymous
Not applicable
Author

Thnaks resolved my problem