Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Incorrect TOTAL in pivot table

Hello, cant understand why qlikview shows incorrect total for Product Sales value in pivot table.

I am calculating product sales as val* mni

intotal.JPG

Thanks

1 Solution

Accepted Solutions
rubenmarin

Hi Aditi, you can change last expression to:

If(Dimensionality()>0, val*mni, Sum(Aggr(Sum(VALUES)*Sum(product_weightage), TERRITORIES, [IJSF Brick])))

Problem is mni, saleshas to multiply VALUES*weight, in totals, if you multiply by sum of weight, it multiplies by 3.18.

View solution in original post

11 Replies
Not applicable
Author

Expand the table and check

Not applicable
Author

Hi,

Properties> Expression>  click on third radio button (sum of rows).

Please check.

Regards,

Joshmi

Not applicable
Author

Val * mni is correctly calculated and since you have selected parent_B in the table grand total is changing, if you dont want the selection to not disturb your grant total change the settings for total calc or in set analysis nullify the selection

sum(<Parent_B> Val* Mni) so when you select parent_B selections will be negated.

Not applicable
Author

expanding didnt help

Not applicable
Author

this radio button mode is disabled.

Not applicable
Author

could you pls Post your sample data.

Gysbert_Wassenaar

Post a qlikview document that demonstrates the problem. Screenshots are worthless for actual troubleshooting.


talk is cheap, supply exceeds demand
Not applicable
Author

this expression gives me error.

Not applicable
Author

It shows wrong product sales to me, is it because of segmented values w.r.t. the IJSF bricks