Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot sum incorrect ?

Hi community,

I have a sum problem and do not understand the result in my pivot table.

If my pivot table is expanded my values match and the partial sums is correct. But if i collape the pivot table, a wrong sum is calculated.

See Screenshot :

Thank you !

1 Solution

Accepted Solutions
Not applicable
Author

the problem is the null value you have in Kostengruppeneu. Try with this formula:

Sum ({<Kostengruppeneu={*}>}[Wert/Bwähr_neu])

View solution in original post

7 Replies
Not applicable
Author

and here the qlikviewfile.

Thank you for any help.

Not applicable
Author

the problem is the null value you have in Kostengruppeneu. Try with this formula:

Sum ({<Kostengruppeneu={*}>}[Wert/Bwähr_neu])

Not applicable
Author

Might also try RangeSum([Wert/Bwahr_nue])

Not applicable
Author

Hi dragonauta,

thank you for your help. By the way, what does the star {*} mean ?

thank you again.

Best regards,

nathanfurby
Specialist
Specialist

Are you saying that this statement worked for you?

Can you please post the working example - it does not work when I used it in your original qvw file.

Not applicable
Author

hi,

here the solution from dragonauto. I take the changes to my modified app:

do not forget to deactivate the null values from dimension !

nathanfurby
Specialist
Specialist

Thanks Honour.

So Dragonauta - why does QV not like the expression? It shows as an error in my v9 SR4 - but still calculates correctly.

Also - what exactly does the asterix in the set statement do? Is it selecting all non-null values?

Many thanks in advance.