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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Running Total on Non-Date Column & Filter Applied

Hi everyone,

 

I'm running into problem with calculate running total. I wanted to create a running total of Invoice Net by Advertiser to understand the trade-off between acquire new business or stick with the one we already have and sell more to them.  Sales.png

 A DAX solution would be nice. 

Thank you!

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

You need to create an index column in "edit queries".

test_index.PNG

Then try the DAX below:

running_total = CALCULATE(
SUM(test_1[invoice net]),
FILTER(test_1,test_1[Index]<=EARLIER(test_1[Index])))
 

You can refer to the pbix

 

Best Regards,
Liang
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

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,
 
You can try the following DAX:
SUM_ = CALCULATE(
    SUM(test_1[invoice net]),
    ALLEXCEPT(test_1,test_1[advertiser]))
test_sum.PNG
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@V-lianl-msft 

 

Thanks for your response! I want them to look more like this. I did it in Excel but wanted to do it in PowerBi so I can add the table to a shared dashboard

 

ASG II - Advertiser Running Total .png

 

Please let me know if you have any thoughts.

Tien

 

Hi @Anonymous ,

 

You need to create an index column in "edit queries".

test_index.PNG

Then try the DAX below:

running_total = CALCULATE(
SUM(test_1[invoice net]),
FILTER(test_1,test_1[Index]<=EARLIER(test_1[Index])))
 

You can refer to the pbix

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors