Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
New Contributor III

sum disregarding dimension but not selection

Dear all,

I'm trying to calculate a value along a hierarchy

I have 2 fields: Site and Division and a Value

>> this value is filled only at the Business Unit level and on an empty Site (or a dummy Site if it should help)

I'm trying to display this value for all site linked to the Business Unit without displaying Business Unit in my straight table

For example


Business Unit

(not shown in the table)


Display value

(awaited result)

Site AA-120
Site BA-120

Site CB-90
Site DB-90

i tried several expression combinating TOTAL and set analysis but without success and i didn't manage to find an example that fit with my needsq

sum(TOTAL <Site> Value)

sum({$<Site=,[Business Unit]=P([Business Unit])>} Value)

does anybody has an idea ?

Thanks in advance

4 Replies

Re: sum disregarding dimension but not selection

You can try using an advanced aggregation:

=sum(aggr(sum(total<[Business Unit]> Value), [Business Unit],Site))

as expression in a chart with dimension Site.

New Contributor III

Re: sum disregarding dimension but not selection

unfortunately, it doesn't seem to work, i'm getting 0 on all Site except on the null value Site (that I should hide)

--> on the null Site, i'm also getting the overall total (for each Business Unit)

I'm trying to achive this with another method (island table but it doesn't seem to work as well or by repeating value along all site / all month through JOIN and display the awaited value through an avg())

... if anybody has another solution ...


Re: sum disregarding dimension but not selection

It would probably be best if you could create a table for Business Unit and value and one for Business Unit and Site. I think this should solve all your problems:



Site,Business Unit,Value

,A,          120

Site A,          A,

Site B,          A,

,B,          90

Site C,          B,

Site D,          B,



LOAD Site,

          [Business Unit]

resident INPUT where len(trim(Site ));


LOAD [Business Unit],


Resident INPUT where len(trim(Site ))=0;

drop table INPUT;

See also attached,


New Contributor III

Re: sum disregarding dimension but not selection

Thanks swuehl I manage to obtain my result with a table storing value at Business Unit level only (so it's the same value for each Site

Community Browser