March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi. I see on the overview page that List.Distinct is promised to choose the *first* record in a set of equivalent records:
But there is no such comment on the Table.Distinct overview page. (And neither of these functions is documented with that behavior on their respective pages.)
I found a website that declares this is the behavior in its opening paragraph:
https://www.datalineo.com/post/power-query-sort-distinct-a-quick-tip
Is there anything official from the PQ team that guarantees this behavior?
Thanks,
Amon
Solved! Go to Solution.
There is no official statement from MS on this. The URL @Greg_Deckler provided is accurate, but if you 100% need to know for a fact that is what happens, you will need to:
At that point there is no need to run Table.Distinct.
Note that Table.Distinct over an entire table this won't matter, but if you are using the optional columns, then it will.
Table.Distinct(Source) - won't matter
Table.Distinct(Source, {"Column1"}) - will matter
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThere is no official statement from MS on this. The URL @Greg_Deckler provided is accurate, but if you 100% need to know for a fact that is what happens, you will need to:
At that point there is no need to run Table.Distinct.
Note that Table.Distinct over an entire table this won't matter, but if you are using the optional columns, then it will.
Table.Distinct(Source) - won't matter
Table.Distinct(Source, {"Column1"}) - will matter
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThank you Greg and Edhans both.
@aseagull There is a whole discussion thread around this topic here: Which row will keep Table.Distinct(Table, {"Column... - Microsoft Power BI Community
There is an "official" answer from a v- if you scroll all the way down.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.