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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
tracycrown
Specialist
Specialist

Average

Dear all

I would like to set the average column equal to average of column(3) (ie $677.59), kindly advise how to write the formula.

Thank you

Tracy 

Labels (1)
2 Solutions

Accepted Solutions
Frank_Hartmann
Master II
Master II

try this:

avg(Total Price*Quantity)

View solution in original post

Frank_Hartmann
Master II
Master II

No, you are not missing anything. You just cannot use column function in this case!
The Column() function operates on a strictly row-by-row basis.
You will have to use the proposed formula in order to achieve your output!

hope this helps!

View solution in original post

3 Replies
Frank_Hartmann
Master II
Master II

try this:

avg(Total Price*Quantity)
tracycrown
Specialist
Specialist
Author

Dear Frank_Hartmann

Many thanks for your quick response.

Kindly advise why avg (total column(3)) is not working as it is the same as avg(total Price*Quantity).

Also, how to make avg(total column(3)) work, am I missing anything ?

Thank you

Tracy 

 

 

Frank_Hartmann
Master II
Master II

No, you are not missing anything. You just cannot use column function in this case!
The Column() function operates on a strictly row-by-row basis.
You will have to use the proposed formula in order to achieve your output!

hope this helps!