Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 31 | |
| 28 | |
| 24 |