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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Brotedo
Helper I
Helper I

Monthly Running Total, Extra Values "Leaking Through"

Hello,

 

I have yearly sales running total that begins in the current month and runs 12 months. The cumulative totals seem to be working, but for some reason some extra amounts (~1% to ~10% depending on category) are "leaking through" to the column subtotals.

LeakThrough.png

 

 

 

The first row is a target that just accrues a static amount each month, but the second row is a cumulative total of sales. The July 2023 number should be the same as the total, but it's not.

Here is my cumulative sum measure:

Rolling12 = 
VAR DateMax =
    MAX ( 'Plan'[DateDiff] )
RETURN
    SUMX (
        CALCULATETABLE (
            'Plan',
            REMOVEFILTERS ( 'Plan' ),
            VALUES ( 'Plan'[Id] ),
            'Plan'[DateDiff] <= DateMax,'Plan'[DateDiff]>=1, 
        ),
        [12 Month]
    ) 

DateDiff is just this

DateDiff = DATEDIFF(today(), 'Plan'[date], MONTH)+1

I know there are tons of possibilites here for what could be causing this, and there are too many details with my datasets and relationships to describe each one, so I guess I'm looking for general answers here - what kinds of issues could be causing this? 

1 REPLY 1
daXtreme
Solution Sage
Solution Sage

Hi @Brotedo 

 

If you have bi-dir relationships and - God forbid - many-to-many... then you'll have to either change the model to be correct and simpler (meaning star-schema without any exotic relationships), or... you'll have a very hard time troubleshooting. Some relationships behave very unintuitively and before you use them, you should really know all the issues that can arise. Also, if your model is complex, I don't think you'll get a general advice that will help you fix the issue. But - as always - I might be wrong and there'll be somebody that will manage this.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.