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

Affichage de sommes partielles

bonjour,

Dans le cadre du développement d'une petite application sur QlikView, je cherche à afficher une somme partielle ayant comme objectif le calcul de sum(QtéCommandée*PrixUnitaireVente) par client.

Pour ce faire, j'ai procédé normalement, en cochant l'option "Afficher sommes partielles" dans la dimension clientFinal dans  l'onglet "Présentation".

Le problème est que j'ai pas le résultat que je cherche ! J'ai eu une valeur mais pas celle de la somme des totalProduit.

J'ai joint à ce message le fichier .qvw ainsi qu'une capture du résultat.

Merci d'avance pour vos réponses.qlikview.bmp

4 Replies
whiteline
Master II
Master II

Hi.

Sorry, I'll write in English.

You don't use aggregation functions in your expressions. So qlikview can't guess that it supposed to be the Sum of rows. 'Afficher sommes partielles' means that the lines for totals is shown. The way of calculating the totals should be defined in expression explicitely, except the cases where there is only one distinct value exists (as 'Date de Création de la Cde' on the screen)

For example, for 'total produit' it could be:

=Sum(PrixVenteUnitaire*QtéCommandée)

Not applicable
Author

Hi,

Thank you for your answer. The problem is that I don't know where should I define the 'Total Produit" expression !

How can I use it in that example ?

Thanks.

whiteline
Master II
Master II

Open the chart (table) properties (right-click menu).

Go to the tab 'Expressions'.

Select the expression 'Total Produit'.

Correct the expression.

Not applicable
Author

Sorry, but I didn't see what you have corrected in that Expression ?

or what should I correct exactly in that expression ?

I'll try to modify it tomorrow !

Thx