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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
MarcUrdang
Post Patron
Post Patron

running totals

I am able to achieve this as long as the running total is in a column ... however I would like to see the running totals as follows and hoping someone can advise the correct calculation if there is one.

                      Jan       Feb    Mar   Apr   May   Jun   Jul   Aug   Sep   Oct   Nov   Dec

Year: 2021 

Value             10         10      10     10     10     10      10    10     10     10     10      10        

**bleep** total      10         20      30     40     50      60     70     80    90      100   110    120

Year: 2022

Value             10         10      10     10     10     10      10    10     10     10     10      10        

**bleep** total      130        140   150    160    170 etc etc 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MarcUrdang , what is your source table structure , usually running total with Date or sortable month year (YYYYMM)  you can get like

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

 

or

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
MounikaTG
New Member

 
amitchandak
Super User
Super User

@MarcUrdang , what is your source table structure , usually running total with Date or sortable month year (YYYYMM)  you can get like

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

 

or

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit .. that works perfectly ... just one more question ... now that the numbers are in a matrix .. I need another calc that works out the % diff ie ... not sure if i need to post another request for this ?

             Jan

2021     

     Val     25

   % dif     

2022

     Val     40

   % diff   60

thanks SO much .. .have accepted as a solution

have a super weekend

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.