Hi
I have two lists in SharePoint Online.
Companies and Articles.
There can be numerous Articles about a Company.
In the Articles list there is a Lookup to the Company List value "Title".
I am trying to filter the Articles Gallery by Company.
I created a Combo Box "cbFilterByCompany" with
DefaultSelectedItem = Choices(Articles.CompanyTitle)
And a Label with
Concat(cbFilterByCompany.SelectedItems, "CompanyTitle", ",")
But it just shows the text "CompanyTitle,CompanyTitle,CompanyTitle,CompanyTitle,CompanyTitle"
Also the Combo Box isn't displaying the names of the Companies (and it seems to be trying to show the names of comanies multiple times as there can be multiple articles about the same company)
thanks
P
Solved! Go to Solution.
This! This is still half baked answer but will do for now.
Filter(AddColumns(ProjectThamesRecentDevelopments,"CompNames",Concat(FirmTitle,Value,"##")),
Dropdown1.Selected.Title in CompNames)
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @cha_bistek @BisTekSpace |
Hello @pmwhelan
Remove the quotes on the CompanyTitle.
Concat(cbFilterByCompany.SelectedItems, CompanyTitle, ",")
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @cha_bistek @BisTekSpace |
Many thanks.
Do you know how I'd filter the items in the gallery?
I try
Filter(Articles, CompanyTitle.Value in cbFilterByCompany.SelectedItems)
but it says expected a one-column table.
Thanks
Hello @pmwhelan
Filter(Articles, CompanyTitle.Value in ShowColumns(cbFilterByCompany.SelectedItems),Title))
Replace Title with the actual name of the column.
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @cha_bistek @BisTekSpace |
"Invalid number of arguments. expected 2 or more"
I try this ...
Filter(Articles, CompanyTitle.Value in cbFilterByCompany.SelectedItems.CompanyTitle)
CompanyTitle isnt recognised.
Filter(Articles, CompanyTitle.Value in ShowColumns(cbFilterByCompany.SelectedItems,Title))
Try that, I added extra parenthesis earlier.
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @cha_bistek @BisTekSpace |
The Function ShowColumns has some invalid arguments.
What's the name of the column of your company title?
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @cha_bistek @BisTekSpace |
In the Articles List I have a CompanyTitle column (which is a lookup to the Company list - it can also be multiselect)
thanks
User | Count |
---|---|
255 | |
114 | |
95 | |
48 | |
38 |