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

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

Reply
SamKrygsheld
Advocate II
Advocate II

Trying to filter a running total to only dates that have data

I'm trying to display a month over month running total of production. I would like this to be able to be filtered by slicers and filters on the page, so calculating in the data source itself is not really an option. However, when I calculate the running total within PowerBI, it shows dates in the future, which is not what I'm looking for.

 

I don't seem to be able to attach images, but I've linked to before/after images as well as a PBIX file showing what I'm talking about. Thanks!

 

Image - before 

Image - desired 

PBIX 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi ,  @SamKrygsheld 

You can take a try to change your measure as below:

Widgets running total in Day = 
IF(CALCULATE(COUNTROWS('Sheet1'))>0,
CALCULATE(
    SUM('Sheet1'[Widgets]),
    FILTER(
        ALLSELECTED('Sheet1'[Date sold].[Day]),
        ISONORAFTER('Sheet1'[Date sold].[Day], MAX('Sheet1'[Date sold].[Day]), DESC)
    )),BLANK())

 

 Best Regards,
Community Support Team _ Eason
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

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi ,  @SamKrygsheld 

You can take a try to change your measure as below:

Widgets running total in Day = 
IF(CALCULATE(COUNTROWS('Sheet1'))>0,
CALCULATE(
    SUM('Sheet1'[Widgets]),
    FILTER(
        ALLSELECTED('Sheet1'[Date sold].[Day]),
        ISONORAFTER('Sheet1'[Date sold].[Day], MAX('Sheet1'[Date sold].[Day]), DESC)
    )),BLANK())

 

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

Thank you so much, that worked perfectly!

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.

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