# New to QlikView

Discussion board where members can get started with QlikView.

Announcements

New Contributor

## 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
Contributor III

## Re: Set analysis problem

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

9 Replies
MVP

## Re: Set analysis problem

Try the TOTAL qualifier:

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

New Contributor

## 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.

Honored Contributor III

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

New Contributor

## Re: Set analysis problem

Sorry only 6 codes, I miss counted

MVP

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

Contributor III

## Re: Set analysis problem

"but it is split by each ACCAaccount"

What is the dimension in the chart?

New Contributor

## Re: Set analysis problem

The two dimesions are ACCAaccount and Period

Contributor III

## Re: Set analysis problem

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

New Contributor

## Re: Set analysis problem

Thnaks resolved my problem

Community Browser