Hi @wass :
If you are worried about the loss of other fields after using the Distinct function, I suggest you use these methods.
Method1: ForAll+Distinct+Lookup
ForAll(
Distinct(
YourDataSource,
TheNameColumn
),
LookUp(
YourDataSource,
TheNameColumn= Result
)
)
Using this method for deduplication, both in accordance with TheNameColumn this column deduplication can also make the return value maintain the original data structure
Method2:Groupby
GroupBy(
YourDataSource,
"TheNameColumn",
"NewGroup"
)
This method is to group according to a certain field. It will change the data structure of the return value, but it can ensure the integrity of the data.
I think these links will help you a lot:
ForAll function in Power Apps
GroupBy and Ungroup functions in Power Apps
Best Regards,
Bof