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
lisannegesch
Frequent Visitor

How can I make an cummulative calculation of the amounts ofassets with an specific value over time?

Hi all,

 

I've a dataset with different columns:

 

- Asset

- Quantity of asset

- Date placed

- Details of the asset

 

Now I want to make a column that calculates the cummulative quantity of an asset with a specific detail. For example, I want to see how many assets are white based on the dates as well:

lisannegesch_0-1665651020473.png

 

Could somewone help me?

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @lisannegesch ,

 

try this calculated column, it works!

 

Column =
IF (
    'Table'[Details] = "white",
    CALCULATE (
        SUM ( 'Table'[quantity] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Date]
                <= EARLIER ( 'Table'[Date] )
                && 'Table'[Details] = "white"
        )
    ),
    BLANK ()
)
 
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

4 REPLIES 4
mangaus1111
Solution Sage
Solution Sage

Hi @lisannegesch ,

 

try this calculated column, it works!

 

Column =
IF (
    'Table'[Details] = "white",
    CALCULATE (
        SUM ( 'Table'[quantity] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Date]
                <= EARLIER ( 'Table'[Date] )
                && 'Table'[Details] = "white"
        )
    ),
    BLANK ()
)
 
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-luwang-msft
Community Support
Community Support

Hi @lisannegesch ,

Use the dax like the below to create a new column:

 

Column = IF('Table'[Details]="white",CALCULATE(SUM('Table'[quantity]),FILTER(ALL('Table'),'Table'[Date]<=EARLIER('Table'[Date])&&'Table'[Details]="white")),BLANK())

 

Output result:

 

vluwangmsft_0-1666161944085.png

 

 

 

Best Regards

Lucien

piotr_gor
Helper II
Helper II

Try: 

CALCULATE( 
SUM('Table'[Quantity] ),
ALL ('Table'),

'Table'[Details] = "white",
'Table'[Date] <= MAX( 'Table'[Date] )
)

Thanks for your fast reply and help :).  I do get a calculation but it isn't cummulative (all the results are the same), it also shows results in the column where the detail isn't met.

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