Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi, I would like to groupby [ID], which has multiple rows per [ID]. When grouping, I would like the rest of the columns to remain, but to average the values that exist for each duplicate [ID] row.
Here is an example.
Thanks in advance, I appreciate your continued support!
Current format:
ID | column1 | column2 |
1 | 10 | 5 |
1 | 20 | 15 |
2 | 80 | 30 |
2 | 90 | 40 |
Goal
ID | column1 | column2 |
1 | 15 | 10 |
2 | 85 | 35 |
Solved! Go to Solution.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
For creating a new table, please try the below.
New Table =
SUMMARIZECOLUMNS (
'Table'[ID],
"column1", AVERAGE ( 'Table'[column1] ),
"column2", AVERAGE ( 'Table'[column2] )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Measure 4 = AVERAGE('Table 1'[column1])
Measure 5 = AVERAGE('Table 1'[column2])
@Anonymous
I'm sorry I should have mentioned. I would like to do this in the power query/transform data query editor.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |