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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Need get running total for every day

Hi,

 

I have below columns in Power BI table. I need to show the running total for every day in the table how to show everyday total. 

Please help me on this.

rajesh4244_0-1625497073442.png

 

Thanks,

Raj

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

This dax is the running total formula for a calculate column. Dax for measure:

 

Measure = Sumx(filter(allselected(Table), [lastenrollon] = max( [lastenrollon]) && [Index] <=max([Index])), [valuecolumn])
Or 

Measure = Calculate(sum([valuecolumn]), filter(allselected(allselected(Table), [lastenrollon] = max( [lastenrollon]) && [Index] <=max([Index])),

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Anonymous 

This dax is the running total formula for a calculate column. Dax for measure:

 

Measure = Sumx(filter(allselected(Table), [lastenrollon] = max( [lastenrollon]) && [Index] <=max([Index])), [valuecolumn])
Or 

Measure = Calculate(sum([valuecolumn]), filter(allselected(allselected(Table), [lastenrollon] = max( [lastenrollon]) && [Index] <=max([Index])),

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

ryan_mayu
Super User
Super User

@Anonymous 

you can try

Measure = CALCULATE(sum('Table'[value]),FILTER(all('Table'),'Table'[date]<=max('Table'[date])))
 
pls see the attachment below

 





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

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , As you do not have timestamp in date you need index for running total column

https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

 

countx(filter(Table, [lastenrollon] = earlier( [lastenrollon]) && [Index] <=earlier([Index])), [lastenrollon])

 

 

 

daily total

countx(filter(Table, [lastenrollon] = earlier( [lastenrollon]) && [Index] <=earlier([Index])), [lastenrollon])

 

use sumx for value columns 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi,

 

I created Index Column and named as SNO  and tried doing your query mentioned above. the above is not executing. 

 

rajesh4244_0-1625548463907.png

 

Please help on this.

 

Thanks,

Rajesh

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors