
Announcements
Hi there,
I'm trying to create a concatenated string of unique items which meet a criteria.
I have a SharePoint list of programs with columns for school and discipline and I'm trying to create a function where if a school is selected from a dropdown it concats all the disciplines in that school into a string and only lists one instance of each, i.e. Unique.
This is my formula so far: Concat(Filter('Program Contact List',School=CAC_School_Dropdown.Selected.Result),Discipline,",")
I can't figure out how to get it to spit out unique values though: At the moment it's giving me every entry which meets the school criteria.
Fashion & Textiles Design,Fashion & Textiles Design,Fashion & Textiles Design,Fashion & Textiles Design,Fashion & Textiles Design,Fashion & Textiles Technology,Fashion & Textiles Technology,Fashion & Textiles Technology,Fashion & Textiles Technology,Fashion Enterprise,Fashion Enterprise,Fashion Enterprise,Fashion Enterprise,Fashion Enterprise,Fashion Enterprise,Fashion Enterprise
Any assistance would be greatly appreciated.
Hi @PipManifold
Something like below code might help in your case.
Set(varConcatData,
Concat(Distinct(
Filter('Program Contact List',School=CAC_School_Dropdown.Selected.Result),Discipline) ,Result,","
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.