Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to multiply a subtotal for a value in each row

Hi everybody.

I've got an issue. My data appears something like in the pivot table here below:

Product NameProduct ComponentComponent %Product q.tyComponents Q.ty
Product 1Component 130%105
Component 220%70
Component 350%175
350
Product 2Component 480%160
Component 520%40
200

I've got the "Product Quantity which is obviously related to the product and not to its components, but i need to calculate the components quantity (Numbers in GREEN) base on a simple formula: product quantity * Component %.

The fact is that i managed to multiply the TOTAL * the %, but not the subtotal (which would obviously correspond to the product quantity as other rows are = to 0.

Do you have any ideas?

Even other ways to manage it at script level or somewhere else!

Thanks everybody in advance!!

10 Replies
Not applicable
Author

ah no, maybe that's the problem, it's not a FIELD, but a column of the table (thus a formula)!