Forum Discussion
Process data table to obtain subtotal table
- 7 months ago
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
When creating the second table, I tried to write DAX like below.
Please check the below picture and the attached pbix file.
First table.
Second table
SUMMARIZECOLUMNS function (DAX) - DAX | Microsoft Learn
Expected result table = SUMMARIZECOLUMNS ( data[plant section], data[order type], data[mainactivitytype], data[order], data[description], "Work Sum", SUM ( data[work] ), "Actual work sum", SUM ( data[actual work] ) ) - 7 months ago
- Transform data (Power Query)
- Select your base table
- Home → Group By
- Group by the WO keys you want to keep, e.g.:
- Work Order
- Plant section
- any other WO-level attributes that are the same across tasks
- Add aggregations:
- Planned Hours = Sum of planned hours column
- Actual Hours = Sum
- Planned Cost = Sum
- Actual Cost = Sum
Hi jeblais,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to Jihwan_Kim & cengizhanarslan for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.