# New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Partner

## Compute a subtotal value with aggr on all rows?

Hello there,

I'm new to Qlik Sense and I really like this product! I have done many things alone until today but I have a little issue that I can't find the reason...

What I want to do is to compute a sub-total value on all rows, which you may find in the attached screenshot. As you might see, there is one row where is written 161,43 and the others are blank.

How can I repeat 161,43 on all the rows? I used the aggr() formula as below:

Aggr( Sum ( WeightFull ), WaveFullName)

WaveFullName is the first column of my dataset. So the only issue is to repeat that 161,43 on all rows but I can't do that. I tried to use the Max() function with Aggr() or FirstSortedValue() but it doesn't work.

Thanks for the help!

Tags (1)
Labels (3)

• ### Aggr. Function

1 Solution

Accepted Solutions
MVP

## Re: Compute a subtotal value with aggr on all rows?

Try this

``Aggr(NODISTINCT Sum(WeightFull), WaveFullName)``

or

``Sum(TOTAL <WaveFullName> WeightFull)``

6 Replies
MVP

## Re: Compute a subtotal value with aggr on all rows?

Try this

``Aggr(NODISTINCT Sum(WeightFull), WaveFullName)``

or

``Sum(TOTAL <WaveFullName> WeightFull)``

Partner

## Re: Compute a subtotal value with aggr on all rows?

Hello Sunny,

Both of your solutions works! Thank you very much! I wasn't aware of the NoDistinct keyword...

But the second solution is very strange to me, as I didn't know this kind of syntax:

``Sum(TOTAL <WaveFullName> WeightFull)``

Anyway, thank you very much for your help! 🙂

MVP

Partner

## Re: Compute a subtotal value with aggr on all rows?

Thank you, but I was thinking about the <WaveFullName> part. This looks like a Set Analysis expression but I'm not aware of this kind of syntax?
MVP

## Re: Compute a subtotal value with aggr on all rows?

Field within <> just define the scope of aggregation..... The link I provided didn't really mention it, but try this one

https://www.wisdomjobs.com/e-university/qlik-view-tutorial-537/using-the-total-qualifier-15275.html

Partner

## Re: Compute a subtotal value with aggr on all rows?

Okay I understand now! Thank you very much Sunny! 🙂