Forum Discussion

amethyst_tang_2's avatar
amethyst_tang_2
Frequent Visitor
2 years ago

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. 

attached an image for reference.

3 Replies

    • amethyst_tang_2's avatar
      amethyst_tang_2
      Frequent Visitor

      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? 

       

    • amethyst_tang_2's avatar
      amethyst_tang_2
      Frequent Visitor

      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?