Forum Discussion
Sum of column
- Anonymous2 years ago
Hi agggga
According to the description, you can use the Merge queries feature in Power Query to get the expected result you want.
Merge queries overview - Power Query | Microsoft Learn
Left outer join - Power Query | Microsoft Learn
You can select the "Semester" and "School Year" columns in both tables to perform the left outer join by selecting Ctrl as you select the columns. After merging the "Tests" table to "Comparison" table, you will have a new column called "Tests" in "Comparison" table. This new column has all matching results in tables.
Then click the Expand icon on column header of "Tests" column, switch to "Aggregate" option and select Sum to aggregate the "number of student" column. Or you can select other aggregation types per your need.
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Hi agggga
According to the description, you can use the Merge queries feature in Power Query to get the expected result you want.
Merge queries overview - Power Query | Microsoft Learn
Left outer join - Power Query | Microsoft Learn
You can select the "Semester" and "School Year" columns in both tables to perform the left outer join by selecting Ctrl as you select the columns. After merging the "Tests" table to "Comparison" table, you will have a new column called "Tests" in "Comparison" table. This new column has all matching results in tables.
Then click the Expand icon on column header of "Tests" column, switch to "Aggregate" option and select Sum to aggregate the "number of student" column. Or you can select other aggregation types per your need.
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!