Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Deseo eliminar duplicados pero seleccionar el dato que quede único., si ordeno el id en power query, dejandolo al inicio no funciona, siempre toma el orden que tiene en la base original
Solved! Go to Solution.
Hi @juarta ,
Try to use Table.Buffer to force PowerQuery to remember your actually sort.
...
#"Sorted Rows" = Table.Sort(...,...),
#"Buffer Sorted Table" = Table.Buffer(#"Sorted Rows"),
#"Removed Duplicates" = Table.Distinct(#"Buffer Sorted Table", ...),
...
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @juarta ,
Try to use Table.Buffer to force PowerQuery to remember your actually sort.
...
#"Sorted Rows" = Table.Sort(...,...),
#"Buffer Sorted Table" = Table.Buffer(#"Sorted Rows"),
#"Removed Duplicates" = Table.Distinct(#"Buffer Sorted Table", ...),
...
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Muchas gracias me funciono como queria
Add an index column after your sort step and before the remove duplicates step to keep the ones you want.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.