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

Cumulative sum

Sorry, I wrote the first message in French, here in English:

Hello,

I try to make a cumulative sum based on a descending sort and I would like help

At first, I apply a descending sort on the column "quantité vend"

Using this method in the properties of the table:

I would then add a column to the right of "quantité vend" which is the cumulative sum for each line to obtain:

1st line: 450

2nd line: 700

3rd line: 814

Also I want to add a new column to calculate the % of the aggregate amount for each line to get:

1st line: 450 / (450 + 700 + 814)

2nd line: 700 / (450 + 700 + 814)

3rd line: 814 / (450 + 700 + 814)

Do you have an idea to create these two columns?

Thank you

In french:

Bonjour,

Je cherche à faire une somme cumulative basée sur un tri décroissant et je souhaiterai de l'aide

Dans un premier temps, j'applique un tri décroissant sur la colonne "quantité vend"

En utilisant cette méthode dans les propriétés du tableau:

Je souhaite ensuite ajouter une colonne à droite de "quantité vend" qui fait la somme cumulative pour chaque ligne pour obtenir:

1ere ligne: 450

2eme ligne: 700

3eme ligne: 814

De plus je souhaite ajouter une nouvelle colonne pour calculer le % de la somme pour chaque ligne cumulée pour obtenir:

1ere ligne: 450/(450+700+814)

2eme ligne: 700/(450+700+814)

3eme ligne: 814/(450+700+814)


Avez vous une idée pour créer ces 2 colonnes?

Merci

1 Reply
Not applicable
Author

I forgot to say , " quantité vend " is a calculated value

Thanks