Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahmoud
Partner - Contributor III
Partner - Contributor III

Probleme Calcul Total TCD

Hello, I want to add the total column, I added it by "presentation" -> "show partial sums", but it does not calculate the total

the expression

Sans titre.png

1 Solution

Accepted Solutions
Mahmoud
Partner - Contributor III
Partner - Contributor III
Author

@Kushal_Chawda  Thank you,  I found the solution thanks to you:

the expression in dimension: 

aggr(sum({<Mouvement_ID={'Achats'},Année=, Mois=, Groupe=>} Prix), Article)

View solution in original post

5 Replies
Kushal_Chawda

@Mahmoud  try changing pivot table expression as below

= sum(aggr(YourExpression, Dimension1,Dimension2,Dimension3))

Mahmoud
Partner - Contributor III
Partner - Contributor III
Author

Thnak you @Kushal_Chawda ,

when i make it in dimension i have this error 

2.png

 

and when i make it in expression, i have this

 

1.png

my expression:

=If(
((Sum({<Mouvement_ID={'Ventes'}>} Quantité) = 0)
and
(Sum({<Mouvement_ID={'Achats'}, Année=>} Quantité) > 0))
,
Sum(aggr(sum({<Mouvement_ID={'Achats'},Année=, Mois=, Groupe=>} Prix), Article, Groupe))
)

Kushal_Chawda

@Mahmoud  can you share sample file to look at?

Mahmoud
Partner - Contributor III
Partner - Contributor III
Author

Excuse me but i'm not allowed to do that, i'm not an administrator

Mahmoud
Partner - Contributor III
Partner - Contributor III
Author

@Kushal_Chawda  Thank you,  I found the solution thanks to you:

the expression in dimension: 

aggr(sum({<Mouvement_ID={'Achats'},Année=, Mois=, Groupe=>} Prix), Article)