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: 
Not applicable

Problem with Avg of Avg!

Hi, guys.

I Need your help with folowing problem.

I should to Show in KPI object (In Text Object) the avg of avg for all offices.

For the moment, I have this formula to count Avg for any office wich i choose: SUM(Price_for_One*Quantity)/Sum(Quantity).

Now I want to know, how to count Avg from this formula for all offices.

1 Solution

Accepted Solutions
marcus_sommer

I assume that you need something like this:

avg(aggr(SUM(Price_for_One*Quantity)/Sum(Quantity), OfficeDimension))

- Marcus

View solution in original post

4 Replies
Anil_Babu_Samineni

I am sure, This is not right approach but try

RangeAvg((SUM(Price_for_One*Quantity)/Sum(Quantity),Avg(1))

Or

RangeAvg((SUM(Price_for_One*Quantity)/Sum(Quantity),0)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Thanks for you answer, but Why you sure that it's not a good way for the task solution?

marcus_sommer

I assume that you need something like this:

avg(aggr(SUM(Price_for_One*Quantity)/Sum(Quantity), OfficeDimension))

- Marcus

Not applicable
Author

I thougth about this method, too. Thanks a lot! ) But, what do think can I get the information which need vy this method? I mean Avg of Avg af all Offices?