Forum Discussion

acerNZ's avatar
acerNZ
Helper III
5 years ago
Solved

Question on removing duplicates, via GUI and using Distinct formula

Experts  I am trying to remove unique column elements and bit lost on seemingly simple things. help ? 1. GUI stuff: In the query editor, where do you find, remove duplicates in columns, I see this ...
  • Jimmy801's avatar
    Jimmy801
    5 years ago

    Hello acerNZ 

     

    you cannot copy paste my code into yours. You can create a new blank query and paste it there to see all steps how it's working. You can either go to your query and use the GUI for create a distinct table (as shown in my screenshot) or to analyse my code and try to change your code accordingly (for sure not easy task if never done, but you can make it).

     

    If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
    Kudoes are nice too

    Have fun

    Jimmy

  • v-yingjl's avatar
    5 years ago

    Hi acerNZ ,

    1. Besides right click the column to use remove duplicates, you can also find it in the Home ribbon:

    2. Table.distinct() is used for a table, List.distinct() is used for a list, you cannot use them to add a custom column in power query. Refer the corresponding documents about them with samples in the docuements.

    3. I could think remove selected Rows in random places as select random rows, you can refer this article which introduces it in details that could help you: How to get a random sample of data with Power Query 

     

    Best Regards,
    Yingjie Li

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.