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! Request now

Reply
CarlosOlmos29
Helper I
Helper I

Create a cumulative column that varies each time you filter a variable

Hello power bi community. I would like to create a column where values are accumulated, and this accumulated change when filtering by a variable. 

In the attached image, the column ACUM OIL REAL is a dax measurement, I would like to create it as a column and have it change when I filter the variable WELLBORE. In the images you can see that when I select AKA04i in the WELLBORE column the accumulated is different than when I select AKA30i.

CarlosOlmos29_0-1696974533683.png

CarlosOlmos29_1-1696974571228.png

I would like to create that as a column because I want to use in another calculate in another column and as a measure it doesn't allow me to add it in the visual.

 

Thank you very much in advance for your help. I hope I have made myself clear.

1 REPLY 1
amitchandak
Super User
Super User

@CarlosOlmos29 , The running total or cumulative seems fine to me as measure

 

If you need a column, that will not dynamic and will not respond to filters

 

A new column 

 

Sumx(filter(Table, [Wellbore] = earlier([Wellbore]) &&  [Volume_date] <= earlier( [Volume_date]) ), [Oil Real BLS])

 

Power BI DAX- Earlier, I should have known Earlier: https://www.youtube.com/watch?v=cN8AO3_vmlY&t=17820s

Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8

 

 

for measure

 

Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f

 

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors