2 Replies Latest reply: Oct 25, 2012 6:11 PM by Rob Uselman

# How do I use an expression column total in Row calculation

I am new to Qlik view so this question may be basic but I have not found anything that works

I have created a Straight table that has

Demension A, B, C and

Expressions D, E, F

What I need to do is use the Average of all values in column F as part of a calculation to create new column G..

If I were doing this in a spreadsheet Cell G2 it would look like this:  "=D2 - SUM(F:F)", Cell G3 would be "=D3 - SUM(F:F)", etc

Any help is appreciated

• ###### Re: How do I use an expression column total in Row calculation

You can't use other columns like that in expressions. You have to use the fields in expression. Here I create three columns D,E and F that all three use field Sales in an expression. F calculates the sum(Sales) divided by the overall average of Sales over all dimensions.

D: sum(Sales)

E: avg(Sales)

F: sum(Sales)/avg(total Sales)

I hope this helps you figure out how to achieve what you need.

• ###### Re: How do I use an expression column total in Row calculation

Thank You much - The problem was it was too simple.  I was looking for a complicated answere when all I needed was the "Total" function.

Thanks for your help