Qlik Community

Ask a Question

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Qlik Highlights 2020 Giveaway! Watch, reply and have a chance to win a $200 Amazon Gift Card! Watch Video
cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor

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

Sorry for a better understanding the full DB is the following

FullDB.png

Try one of these

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

or this

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

All works perfect!!! Thanks