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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
amethyst_tang_2
Frequent Visitor

Replace duplicated values with average in Power Query

Hi, in this scenario, i have 3 duplicates, and among all these 3 duplicates, all has the same values except for the score, where each duplicate have a different score. is there any way in power query, where i can find the average of these 3 scores, then followed by removing the duplicated rows. 

amethyst_tang_2_0-1705896936585.png

attached an image for reference.

3 REPLIES 3
PijushRoy
Super User
Super User

Hi @amethyst_tang_2 

Please use Group by with the Overview column
and Avg for the other 4 numeric column
Example

PijushRoy_0-1705907611637.png

 

If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush
www.MyAccountingTricks.com 
https://www.youtube.com/MyAccountingTricks




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Hi PijushRoy, have tried the groupby method. However, it seems that I can only combine the 3 values together.

 

however, i hope that i am able to remove those duplicated values then replace with the average, all doen via Power Query. Do you think there are any way to solve this?

 

Hi, do you have any idea, after getting the average value, how do i put the value back to the original data and remove the other duplicated rows then? 

 

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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