Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |