
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this
Aggr(NODISTINCT Sum(WeightFull), WaveFullName)
or
Sum(TOTAL <WaveFullName> WeightFull)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this
Aggr(NODISTINCT Sum(WeightFull), WaveFullName)
or
Sum(TOTAL <WaveFullName> WeightFull)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Is that a Set Analysis clause? Where may I find the documentation about this syntax?
Anyway, thank you very much for your help! 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check here

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay I understand now! Thank you very much Sunny! 🙂
