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,
I have a following table and its expected result. Some of my elements have child elements. I would like to calculate a sum of Time for parent and all its children.
Thanks for your help
Solved! Go to Solution.
I would suggest making sure you have a Parent ID for all rows. If the ID field doesn't have a parent ID, populate the ParentID with ID field when loading your data. This way you can just sum based on the Parent ID.
Just throw in a Calculated Column with your selection logic, then used your Calculated Column for the sumazation...
Cal_Column = If(ISBLANK(Table1[ParentID]),Table1[ID],Table1[ParentID])
Proud to give back to the community!
Thank You!
Just throw in a Calculated Column with your selection logic, then used your Calculated Column for the sumazation...
Cal_Column = If(ISBLANK(Table1[ParentID]),Table1[ID],Table1[ParentID])
Proud to give back to the community!
Thank You!
I would suggest making sure you have a Parent ID for all rows. If the ID field doesn't have a parent ID, populate the ParentID with ID field when loading your data. This way you can just sum based on the Parent ID.
User | Count |
---|---|
98 | |
75 | |
74 | |
49 | |
26 |