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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
froebm
Frequent Visitor

Aggregate a cummulative sum builded with TOTALYTD

Hello,

 

I have used the formula TOTALYTD to create a cumulative total that displays the stock data per month. So far everything is fine.

Bestand kum. (VK-Wert) = 
TOTALYTD(sum(tblLieferantenKER[lkerBestand (VK-Wert)]),tblDateTable[Date], tblDateTable[Monthnumber] <= max(tblLieferantenKER[lkermm]))

 

froebm_0-1700818953019.png

But now I would like to aggregate the result values of "Bestand kum. (VK-Wert)" again. In other words: January = January or 872,073; February = January + February or 872,073 + 936,985 etc.

 

I'm kind of stumped and can't get any further

 

Thanks in advance for your help.

 

Best regards,

Max

 

 

1 ACCEPTED SOLUTION
froebm
Frequent Visitor

After a short break I found the solution. For those beeing interessted in it:

    CALCULATE(
        SUMX(
            VALUES(tblDateTable[Monthnumber]),
            [Bestand kum. (VK-Wert)]
        ),
        FILTER(
            ALL(tblDateTable),
            tblDateTable[Monthnumber] <= MAX(tblDateTable[Monthnumber])
        )
    )

View solution in original post

1 REPLY 1
froebm
Frequent Visitor

After a short break I found the solution. For those beeing interessted in it:

    CALCULATE(
        SUMX(
            VALUES(tblDateTable[Monthnumber]),
            [Bestand kum. (VK-Wert)]
        ),
        FILTER(
            ALL(tblDateTable),
            tblDateTable[Monthnumber] <= MAX(tblDateTable[Monthnumber])
        )
    )

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.