Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
hobanwashburne
Creator
Creator

Help with the Aggr function

Please take a look at the QVW attached. I believe my requests are straightforward, but I can't get them to work.

1 Solution

Accepted Solutions
sunny_talwar

This?

Capture.PNG

1st table expression:

Avg(Aggr(Sum(Data), Company, Channel, Customer, ProductCategory, Year))

2nd table expression:

sum(Data)/Sum(TOTAL <Company>Data)

View solution in original post

2 Replies
sunny_talwar

This?

Capture.PNG

1st table expression:

Avg(Aggr(Sum(Data), Company, Channel, Customer, ProductCategory, Year))

2nd table expression:

sum(Data)/Sum(TOTAL <Company>Data)

swuehl
MVP
MVP

Your second request can be achieved by using

=Num(sum(Data) / sum(TOTAL<Company> Data),'##.00%')

Not sure about your first table, where do you want to show that average?