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

How to create an average aggregated dimension in a pivot table

BNolan_0-1614331864943.png

Hello, 1st time post...  I have a pivot table in Qlikview showing the product costing by month.  I need to create a aggr dimension of the average cost. 

I'm able to SUM all of the monthly costing values with

=num(Aggr( Sum(Costing),Product ),'###.####')

But I'm struggling with find the number of months to do the division...

I'm  using...

=Aggr( Count(Costing), Product, MonthYear )

Any ideas?  I'm baffled!

Thanks,

Bernard

 

1 Solution

Accepted Solutions
MayilVahanan

HI @BNolan 

For find the division of the month, try like below

=Aggr( Count(Distinct MonthYear), Product)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

HI @BNolan 

For find the division of the month, try like below

=Aggr( Count(Distinct MonthYear), Product)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
BNolan
Contributor
Contributor
Author

Thanks so much.  Works just as desired!