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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
nleuck_101
Responsive Resident
Responsive Resident

Running Total of percent growth measure

Hello All,

 

I have a measure where I calculate the Avg Monthly Payment Growth % and I would like to calcuate the running total of that measure. I'm not really finding what I want online and any help would be greatly appreciated. I did try using a visual calcuation which seemed to work but I would like to know how to do this in dax. I've done a running total on whole numbers before but not percentages.

 

nleuck_101_0-1777643960087.png

 

14 REPLIES 14
danextian
Super User
Super User

Hi @nleuck_101 

 

It looks like your percentage measure is something like dividing Value A by Value B, and what you’re aiming for is a running total that sums the already calculated yearly percentages, rather than recalculating the division of total Value A over total Value B across all years (or up to the current/max year).

danextian_1-1777718213075.png

 

Ensure to use a dedicated dates table and replace the referenced column with Year. Please try the attached pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@danextian 

I only want to look at the year starting at 2019 through whatever the current year is.

You can add an extra filter

danextian_0-1777948007354.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@danextian 

Yeah no matter what I try it's not working. The right column is your formula.

nleuck_101_0-1778079457988.png

 

Did you have a look at the pbix in  my original response?  It uses a separate/dedicated dates dimension table. If that doesn't work, please provide a sanitized (confidential data removed)  copy of your pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@danextian 

I have a separate date table as well. I can not provide you a pbix file. I would have to create a new file with fake data and don't have time to do that.

Hi @nleuck_101,
As mentioned by @danextian , could you please share the PBIX file? This will help us better understand your requirements. Once we have it, we can provide you with an accurate solution.

Regards,
Community Support Team.

Hi @nleuck_101,
Just following up on this request. Could you please share the PBIX file or a sample file with dummy data if possible? It will help us reproduce the issue from our side and provide a solution according to your exact requirement.

Regards,
Community Support Team.

krishnakanth240
Resident Rockstar
Resident Rockstar

Hi @nleuck_101 

Can you try this

 

Running Growth % =

VAR CurrentYear = MAX('Date'[Year])

 

VAR CumCurrent =

 CALCULATE([Total Payments],

 FILTER(ALL('Date'), 'Date'[Year] <= CurrentYear) )

 

VAR CumPrevious =

CALCULATE( [Total Payments],

FILTER(ALL('Date'), 'Date'[Year] <= CurrentYear - 1))

 

RETURN

DIVIDE(CumCurrent - CumPrevious, CumPrevious)

@krishnakanth240 

I'm not sure what that did but definitely did not work.

Hi @nleuck_101 

Please share sample data of tables in text format or you can share a pbix file over onedrive link providing access to link 

Shai_Karmani
Responsive Resident
Responsive Resident

You can do this with a classic running total over your existing measure. The pattern is CALCULATE plus a filter on your year column, with ALL on that column so the filter context is reset on each row of the visual.

 

Replace 'Date'[Year] with whatever your actual year column is called.

 

Running Avg Monthly Payment Growth % =

VAR CurrentYear = MAX('Date'[Year])

RETURN

CALCULATE(

    [Avg Monthly Payment Growth %],

    'Date'[Year] <= CurrentYear,

    ALL('Date'[Year])

)

 

Drop that into the same table or matrix you were using for the visual calculation and you should see the cumulative percentages year by year. If the year column lives directly on the fact table rather than a separate date table, just point the FILTER at that column and use ALL on it the same way.

 

If this works for you, kindly mark it as the solution and give a thumbs up.

 

Best,

Shai Karmani

@Shai_Karmani 
This is what I get but it doesn't seem correct. If I do a visual calculation I get what I expect but I want to it in DAX and not a visual calculation (the last number is the visual calculation).

nleuck_101_1-1777645633739.png

 

 

Hi,

Please share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.