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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
Anonymous
Not applicable

running total not working

Hi,

 

I am new to powerbi. Came across a requirement for which i am stuck.Refered some forums and used the same solution but did not work for me.Not sure what wrong i am doing.Please help

 

I have added a new column to create running total.  

 

Untitled.jpg

 

Expected output
$1
$3
$6
$10
$15
$21
$28
$36
$45
$55
$66
$78
$91

 

 

 

Thanks in advance

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi, @Anonymous

 

Try the formula below:

 

Running Total Column=  
CALCULATE (
SUM ( Sheet1[TotalDay] ),
FILTER (Sheet1,Sheet1[WeekName] <= EARLIER(Sheet1[WeekName])
)
)

 

 Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi, @Anonymous

 

Try the formula below:

 

Running Total Column=  
CALCULATE (
SUM ( Sheet1[TotalDay] ),
FILTER (Sheet1,Sheet1[WeekName] <= EARLIER(Sheet1[WeekName])
)
)

 

 Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

thanks Yuliana

 

Works fine now

Greg_Deckler
Super User
Super User

Any chance you can post some sample data like you posted your expected results (not a screen shot because I can't copy the data) and the formula(s) you are using?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Formula Used

 

Running Total COLUMN = CALCULATE (SUM ( Sheet1[Total Day] ),
Sheet1[Week Name] <= EARLIER ( Sheet1[Week Name].[Date] ))

 

Data

 

Week NameTotal Day
10/4/2015$1
11/3/2015$2
12/3/2015$3
1/2/2016$4
2/1/2016$5
3/2/2016$6
4/1/2016$7
5/1/2016$8
5/31/2016$9
6/30/2016$10
7/30/2016$11
8/29/2016$12
9/28/2016$13

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 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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