Dear PoweRappers,
I have a bit too complex requirement (for me) as briefed below, looking for an easy solution please:
I have a SharePoint Branch List, containing records of all Branches information for many companies, including a column of ‘codes’ (Text field), and I would want to create a Collection in Power Apps, to extract the codes from all these branches where, the requested Company is equal to the Company in Branch List.
After we get a list of all the ‘codes’ in a collection, which may include duplicate/triplicates ‘codes’, I also want to filter-out unique codes, as a next step to get a list of unique ‘codes’ for each company.
The following function works for a single branch as copied below, I need For All branches:
ClearCollect(colAllCodes,Filter(colISICKSA, 'ACTIVITY CODE' in LookUp('Branches List', 'Branch CR No.'= galRequested.Selected.'CR Number', Activities).Value))
Codes

Where colAllCodes is new collection name
coISICKSA is a collection of all Codes (Master Codes List)
ACTIVITY CODE is the column field in colISICKSA
Activities is a Lookup field of Codes (looking up to Codes (Master Codes List)
Hope I am clear in expressing my request!
Thanks for the prompt response.