Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
chriscools
Creator II
Creator II

totals per salesfamily not based on expression but on numbers calculated

Hello,

i have a calcuation in qlikview where a forecaste number of pieces per salesfamily is divided by the desired MOQ, to have an idea of the ideal number of references per sales family.

The calculation on the row of the salesfamily is correct, but  the last column in the example below gives me a problem when counting the totals.

I don't want 307 which is the calculation based on the 2 columns on the left, but i want it to give the sum of the numbers below in the yellow part.

Is this even possible?

chriscools_0-1626263737228.png

 

thanx!

 

Chris

 

1 Solution

Accepted Solutions
Kushal_Chawda

@chriscools  What is the expression you are using for the last column?

Try below

=sum(aggr( Expression1/Expression2, salesfam,[sab salesfam]))

Write full expressions in Expression1 & Expression2. Also if there are any other dimension in pivot, include that as well in Aggr

View solution in original post

3 Replies
Kushal_Chawda

@chriscools  What is the expression you are using for the last column?

Try below

=sum(aggr( Expression1/Expression2, salesfam,[sab salesfam]))

Write full expressions in Expression1 & Expression2. Also if there are any other dimension in pivot, include that as well in Aggr

chriscools
Creator II
Creator II
Author

ah yes, that solved it! thank you very much!!!

 

Chris

JacobMay1
Contributor
Contributor

I'm happy to see the issue is now solved. Thank you for updating us with the outcome.

 

paycheckrecords