Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
79 | |
53 | |
39 | |
39 |
User | Count |
---|---|
104 | |
85 | |
47 | |
44 | |
43 |