Solved: GroupBy and multiple Sum columns - Power Platform ...
powerusers.microsoft.com › t5 › Building-Power-AppsSep 17, 2019 · You can add multiple columns at once in a single AddColumns call. In your case, you can have an expression like the one below: AddColumns ( GroupBy ( classes, "subject_id", "all_subjects" ), "row_count", CountRows (all_subjects), "sum_academic_hrs", Sum (all_subjects, academic_hrs), "sum_actual_hrs", Sum (all_subjects, actual_hrs) )
Grouping or summarizing rows - Power Query | Microsoft Learn
learn.microsoft.com › en-us › power-queryDec 17, 2022 · Select the Advanced option, so you can select multiple columns to group by. Select the Country column. Select Add grouping. Select the Sales Channel column. In New column name, enter Total units, in Operation, select Sum, and in Column, select Units. Select OK; This operation gives you the following table. Operations available. With the Group by feature, the available operations can be categorized in two ways: Row level operation