Hey,
I want to create a collection "Referencias" using DISTINCT values of column ID from a SP List "Pending" (examples at the end).
The thing here is, I also want to add the "Cab_City" column to the collection, but showing only one record (always the same value for each GUID).
I've tried something like this but is not working properly.. any ideas??
ClearCollect(Referencias;
RenameColumns(Distinct(Pending;SP_GUID);"Value";"Col_GUID")
);;
AddColumns(Referencias;"City";LookUp(Pending;SP_GUID=Referencias[@Col_GUID]).Cab_City);;
Thanks!
(Col) Desired Referencias:
| GUID | City |
| 1 | London |
| 2 | Madrid |
| 3 | Paris |
(SP) Pending:
| GUID | City |
| 1 | London |
| 2 | Madrid |
| 2 | Madrid |
| 3 | Paris |