Qlik Community

Qlik Sense App Development

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

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Contributor
Contributor

Sorry for a better understanding the full DB is the following

FullDB.png

Highlighted

Try one of these

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

or this

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

All works perfect!!! Thanks