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

Aggr sum in all lines

Hi all,

I'm a rookie in Qlik Sense and probably there is a simple solution to my question but I'm not finding solution.

I have a simple database with some fields and I need to aggregate the amount of account "Sales" divided by Year and Category. The amounts are correct.
My request is to have the same amounts but also entered in the line of account "Cost" (see in yellow the result that I need)
Which formula is to use?

Thank you very much for some help

Regards

 

Example.png

3 Replies
Anonymous
Not applicable
Author

Sorry for a better understanding the full DB is the following

FullDB.png

sunny_talwar

Try one of these

Sum(TOTAL <Category, Year> {$<[Account] = {'Sales'}>} Amount)

or this

Aggr(NODISTINCT Sum({$<[Account] = {'Sales'}>} Amount), Category, Year)
Anonymous
Not applicable
Author

All works perfect!!! Thanks