March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a table that contains a 'CaseID', 'Status' and a 'Runningtime_Days'
Per 'CaseID' i can have multiple rows one for each 'Status'.
Wanted result 'TOTAL_Runningtime_Days'
For example
CaseID | Status | Runningtime_Days |
1 | 1 | 1 |
1 | 2 | 15 |
2 | 1 | 2 |
3 | 1 | 1 |
3 | 2 | 18 |
3 | 3 | 5 |
Expected result:
CaseID | Status | Runningtime_Days | TOTAL_Runningtime_Days |
1 | 1 | 1 | 16 |
1 | 2 | 15 | 16 |
2 | 1 | 2 | 2 |
3 | 1 | 1 | 24 |
3 | 2 | 18 | 24 |
3 | 3 | 5 | 24 |
Solved! Go to Solution.
Create a Calculated Column
TOTAL_Runningtime_Days =
CALCULATE(
SUM(YourTableName[Runningtime_Days]),
ALLEXCEPT(YourTableName, YourTableName[CaseID])
)
If this helped, a Kudos 👍 or Solution mark would be great!
Cheers,
Kedar Pande
www.linkedin.com/in/kedar-pande
Create a Calculated Column
TOTAL_Runningtime_Days =
CALCULATE(
SUM(YourTableName[Runningtime_Days]),
ALLEXCEPT(YourTableName, YourTableName[CaseID])
)
If this helped, a Kudos 👍 or Solution mark would be great!
Cheers,
Kedar Pande
www.linkedin.com/in/kedar-pande
Thank you so much, i have been struggling with this for over an hour and you answer it within a minute, brilliant!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
98 | |
65 | |
54 |