Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Cumulative Sum

$
0
0

Hi everybody,

 

I'm learning PBI and I would like to create a matrix table to calculate :

-In a first column : the total turnover by month

-In a second column : the cumulative turnover

 

I would like to get this result :

 

MONTHTURNOVERCUMULATIVE TURNOVER
184 69384 693
2190 685275 378
360 935336 313
4119 286455 599
544 570500 169
647 644547 813
7130 880678 693
859 472738 165
948 321786 486
1052 564839 050
1116 312855 362
1257 059912 421

 

 

I've created a measure TURNOVER which works well :

 

TURNOVER = 
VAR
DebutCA = SUMMARIZE('Parametres comptes';'Parametres comptes'[DebutCA])
VAR
FinCA = SUMMARIZE('Parametres comptes';'Parametres comptes'[FinCA])
VAR
JournalVentes = SUMMARIZE('Parametres journaux';'Parametres journaux'[JournalVentes])
RETURN
CALCULATE(sum('Journaux 3 ans'[Solde]);
'Journaux 3 ans'[Compte]>=DebutCA;
'Journaux 3 ans'[Compte]<=FinCA;
'Journaux 3 ans'[Journal]=JournalVentes;
)

 

I would like to create a measure to calculate cumulative turnover.

I don't know how to proceed.

 

I tried differents measures but it doesn't works...

 

Thank you for your help.

 

Sincerely


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>