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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
phhs80
New Member

Extra blank (total-like) first row in table visual when using running tunning total

Hi everyone,


I’m facing an issue with a running-total measure that’s adding an extra first row (blank date) at the top of my table visual.

Below are the screenshots that illustrate the problem:

  • Data sample – my fact table (mytable)

    data.png

  • Table visual – note the extra first row (red box)

    visual.png

My DAX measure is:

Running total =
VAR d = MAX('calendar'[Date])
RETURN
CALCULATE(
    SUM('mytable'[Income]),
    FILTER(
        ALL('calendar'[Date]),
        'calendar'[Date] <= d
    )
)

What I want:
Only the actual date rows (e.g., 01-12-2020, 01-01-2021, …).
What I’m getting:
An extra first row with a blank date showing the grand total (same as the bottom total).

Additional info:

  • 'calendar' is marked as the Date table.

  • There’s a 1:1 relationship (both sides) between 'calendar'[Date] and 'mytable'[Date].

  • I prefer a pure DAX solution, not a visual/page filter (like “Dates[Date] is not blank”).

Has anyone found a robust way to avoid that initial blank/grand-total row when computing running totals?

Thanks in advance for any guidance!
—Paul

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, 

Please try something like below, and please check the attached pbix file.

Put Calendar[Date] column to the visualization

Create one to many relationship with single direction.

And, try to write the measure like below, if you do not want to see no-data-date.

 

Jihwan_Kim_0-1759672826282.png

 

Running total =
VAR d =
    MAX ( 'calendar'[Date] )
RETURN
    IF (
        SUM ( 'mytable'[Income] ),
        CALCULATE (
            SUM ( 'mytable'[Income] ),
            FILTER ( ALL ( 'calendar'[Date] ), 'calendar'[Date] <= d )
        )
    )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, 

Please try something like below, and please check the attached pbix file.

Put Calendar[Date] column to the visualization

Create one to many relationship with single direction.

And, try to write the measure like below, if you do not want to see no-data-date.

 

Jihwan_Kim_0-1759672826282.png

 

Running total =
VAR d =
    MAX ( 'calendar'[Date] )
RETURN
    IF (
        SUM ( 'mytable'[Income] ),
        CALCULATE (
            SUM ( 'mytable'[Income] ),
            FILTER ( ALL ( 'calendar'[Date] ), 'calendar'[Date] <= d )
        )
    )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thanks a lot, Jihwan_Kim! Keeping my whole setting but replacing my Rolling total measure by yours fixes the issue completely.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Helpful resources

Announcements
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 Kudoed Authors
Users online (10,836)