Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Groupby Duplicate ID and Average all other Columns

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: 

 

IDcolumn1column2
1105
12015
28030
29040

 

Goal

IDcolumn1column2
11510
28535

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Picture2.png

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.


Go to My LinkedIn Page


View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Picture2.png

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.


Go to My LinkedIn Page


Jihwan_Kim
Super User
Super User

Hi,

For creating a new table, please try the below.

 

Picture1.png

 

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.


Go to My LinkedIn Page


smpa01
Super User
Super User

Measure 4 = AVERAGE('Table 1'[column1])
Measure 5 = AVERAGE('Table 1'[column2])

 

smpa01_0-1632886226226.png

@Anonymous 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

I'm sorry I should have mentioned. I would like to do this in the power query/transform data query editor. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.