Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

Aggr calculation

I'm having a small issue when trying to do a Aggr sum.  Here is my formula and example.  Does anyone see why it would only populate the Midwest East and not New England & SE?  Here is my formula:  aggr(Sum({<Level2=,Level3=,Level4=,[PC Desc]=,[GL Hier 1] = {[ZMR Chart of Accounts]}, YTDFlag = {1},[HighNode] = {'ZMR_GROSS2'}>} [In company code currency_HSL] * -1),FISYR)

Qlik.png

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Try this

Aggr(NODISTINCT Sum({<Level2=,Level3=,Level4=,[PC Desc]=,[GL Hier 1] = {[ZMR Chart of Accounts]}, YTDFlag = {1},[HighNode] = {'ZMR_GROSS2'}>} [In company code currency_HSL] * -1), FISYR)

View solution in original post

4 Replies
marcus_sommer

Try it in this way:

sum(aggr(Sum({<Level2=,Level3=,Level4=,[PC Desc]=,[GL Hier 1] = {[ZMR Chart of Accounts]}, YTDFlag = {1},[HighNode] = {'ZMR_GROSS2'}>} [In company code currency_HSL] * -1),FISYR, GM))

- Marcus

tmumaw
Specialist II
Specialist II
Author

Nope.  My Gross Sales = Service Line with that calculation.  The top numbers are correct, just can't figure out why they won't duplication for New England & SE

sunny_talwar

Try this

Aggr(NODISTINCT Sum({<Level2=,Level3=,Level4=,[PC Desc]=,[GL Hier 1] = {[ZMR Chart of Accounts]}, YTDFlag = {1},[HighNode] = {'ZMR_GROSS2'}>} [In company code currency_HSL] * -1), FISYR)
tmumaw
Specialist II
Specialist II
Author

Thanks Sunny.  It took care of my issue.