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: 
pkelly
Specialist
Specialist

Line Total Divided by Sub Total

For Forum.jpg

Have a pivot table and want to achieve the above i.e. Take the line total and divide by the sub total - see red square.

Have tried :

=sum(rcv_CostQuantity) / SUM(ALL rcv_CostQuantity)

and also...
 =sum(rcv_CostQuantity) / SUM(TOTAL rcv_CostQuantity)

Not sure if I should be doing some form of AGGR() or using the Dimensionality() function.

As usual, any assistance greatly appreciated.

Thanks

Paul

 

 

 

 

Labels (2)
1 Solution

Accepted Solutions
jyothish8807
Master II
Master II

Hi Pkelly,

 

Can you try this:

 =sum(rcv_CostQuantity) / SUM(TOTAL<ven_Code> rcv_CostQuantity)
Best Regards,
KC

View solution in original post

4 Replies
jyothish8807
Master II
Master II

Hi Pkelly,

 

Can you try this:

 =sum(rcv_CostQuantity) / SUM(TOTAL<ven_Code> rcv_CostQuantity)
Best Regards,
KC
sunny_talwar
MVP
MVP

I believe this is what you might be looking for

=Sum(rcv_CostQuantity)/Sum(TOTAL <pro_Rpt01Description, pro_Rpt02Description, pro_Rpt03Description, Type, Code> rcv_CostQuantity)
pkelly
Specialist
Specialist
Author

Thanks, you are spot on...

jyothish8807 pointed me in the right direction.

sunny_talwar
MVP
MVP

Make sense... Glad he was able to help 🙂