Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
piekepotloed
Contributor II
Contributor II

Total problem in Pivot table

Hi,

I've an expression that looks like this:

sum({$<Grootboek_type_revenue={2}, Maand*={"*"}>}Dgbk_bedrag)*if(Left(ArcusRapportageNiveau,2)='29' or Left(ArcusRapportageNiveau,2)='43' ,1,-1))+(sum({$<Grootboek_type_revenue={3}, Maand*={"*"}>}Dgbk_bedrag))

If I check the "Show Partial Sums"checkbox at the dimension tab, the total shown is not the same as the total of the expressions. How can I get this wrigth?

Kind regards,

Peter

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Like this?

=Sum(Aggr((sum({$<Grootboek_type_revenue={2}, Maand*={"*"}>}Dgbk_bedrag)*if(Left(ArcusRapportageNiveau,2)='29' or Left(ArcusRapportageNiveau,2)='43' ,1,-1))+(sum({$<Grootboek_type_revenue={3}, Maand*={"*"}>}Dgbk_bedrag)),ArcusTelNiveau,ArcusRapportageNiveau))

View solution in original post

3 Replies
MK_QSL
MVP
MVP

Use Dimensionality() or SecondaryDimensionality()...

Provide your sample file to work..

piekepotloed
Contributor II
Contributor II
Author

Hi Manisch,

Thanks for your support, but I'm not getting there...I provide a sample file as you've asked for.

Peter

tresesco
MVP
MVP

Like this?

=Sum(Aggr((sum({$<Grootboek_type_revenue={2}, Maand*={"*"}>}Dgbk_bedrag)*if(Left(ArcusRapportageNiveau,2)='29' or Left(ArcusRapportageNiveau,2)='43' ,1,-1))+(sum({$<Grootboek_type_revenue={3}, Maand*={"*"}>}Dgbk_bedrag)),ArcusTelNiveau,ArcusRapportageNiveau))