I am currently struggling with using Distinct.
What I'm trying to do: display all locations where a certain criteria is met (project number), but if there are multiple items in one location, then display the location once - example:
"4555 located at T05, T04"
However, the result I'm currently getting is:
"4555 located at T05, T05, T05, T04"
The data is from a SharePoint List.
My current code:
SP_P01 & " located at " & Concat(
Filter(
Deliveries,
Status.Value = "Transport ordered",
ShowOnPickPackApp = true,
SPnumber = SP_P01.Text,
StartsWith(
yardLocation.Value,
"P"
) || StartsWith(
yardLocation.Value,
"T"
)
),
yardLocation.Value,
" & "
)
When running this code, it displays the same location multiple times (if all criteria are true - see example above). I've been trying to use Distinct, but when I do, it's not able to distinct the 'yardLocation', so I'm not even sure I'm putting the distinct in the right location.
Any help would be greatly appreciated!