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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
MarianneElver
Helper III
Helper III

Create column/slicer on running totals

Hi, 

 

I have searched in wain for similar problems, but in wain.

 

I have this table:

TitelInvestmentReturn
a100600
b5002000
c3003000
d1501500
e2502250

 

I need a calculated column, or some other solution that will provide me with the running total of "Investment", here as an example named "Total investments":

 

TitelInvestmentReturnTotal investments
a100600100
b5002000600
c3003000900
d15015001050
e25022501300

 

I want to show how a bigger volume of investment creates a larger return, although there won't be a direct proportionality.

 

To show this, I want a slicer on "Total investments" that goes from 100 to 1300, and thus wil not stop at 500, which is the largest single investment sum.

 

When I move the slicer, the return will increase, like this:

 

InvestmentExample.png

Any help is highly appreciated.

 

Thanks,

Marianne

1 ACCEPTED SOLUTION

Hi again,

 

I believe I have solved the problem.

 

The solution that did the trick was not a calculated column, but a Power Query column. 

Thanks to Mynda Treacy from Myonlinetraininghub for this example:

https://www.myonlinetraininghub.com/quickly-create-running-totals-in-power-query.

 

If, however a DAX column would be better, I am open to solutions.

 

Thanks,

Marianne

View solution in original post

5 REPLIES 5
MarianneElver
Helper III
Helper III

Hi Miguel,

 

Thanks, what I needed was a column so that I can use it in a slicer.

 

I just didn't think of Power Query to be the place to find the solution!

 

Thanks again for diving into my problem!

MFelix
Super User
Super User

Hi @MarianneElver ,

 

To make the calculation for the total you can use the following formula:

Cumulative = CALCULATE(SUM('Table'[Investment]),'Table'[Titel]<= MAX('Table'[Titel]))

 

MFelix_0-1652258910716.png

 

My question is how you are making the calculation based on the slicer can you please share some more insights on what you need.

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Miguel,

 

Thanks for your message!

My need is to have a slicer that goes from zero to the total sum of possible investments.

 

If, like the example below, I choose an investment som of 993, then it is possible for me to invest Title a, b and c, totalling to 900, and then to have a total return of 5600. Note that the "Total Investment" column is manually created. It is this column that I need to create.

 

InvestmentExample3.png

 

Your cumulative column example only goes up to the single largest investment sum, 500. The need is to be able to select a sum of up to 1300 in total, like in the slider to the left:

InvestmentExample2.png

 

Please let me know if I should provide further information!

Thanks,
Marianne

Hi again,

 

I believe I have solved the problem.

 

The solution that did the trick was not a calculated column, but a Power Query column. 

Thanks to Mynda Treacy from Myonlinetraininghub for this example:

https://www.myonlinetraininghub.com/quickly-create-running-totals-in-power-query.

 

If, however a DAX column would be better, I am open to solutions.

 

Thanks,

Marianne

Hi @MarianneElver ,

 

The option I created was a measure and not a calculated column, but if you were abble to achieve it with a column that's great.

 

Do you want me to get you a metric for the last calculation?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.