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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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:
Could somewone help me?
Solved! Go to Solution.
Hi @lisannegesch ,
try this calculated column, it works!
Hi @lisannegesch ,
try this calculated column, it works!
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:
Best Regards
Lucien
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.