Hi all,
I have seen various questions on choice fields and specifically how to show all records with the option to apply multple filters - and then show all again.
The underlying SharePoint table has a single line Title text field and includes two Choice fields, Region and Sector.
The aim is to filter on each choice field item via dropdowns and refine with partial text matches from the Title field.
The following code achieves the filtering but I cannot see how to show all.
SortByColumns
(Filter(RiskList,ReadRegion = Dropdown1.Selected.Value, ReadSector = Dropdown3.Selected.Value, TextSearchBox1.Text in Title),
"MRL",SortOrder.Descending)
The dropdown controls (Data, Items) are linked to the table choices - as in Distinct(RiskList,ReadRegion).
Note 1: ReadRegion and ReadSector are calculated fields derived from the Choice fields which, I've seen from other posts, seems to be a necessary workaround due to limitations on direct use of choice fields.
Note 2: I have seen the 500 record limitations on Distinct and SortByColumns - this is not an issue for this list.
I guess one way to show all Regions/all Sectors would be to have a Clear button and then use an If function ahead of the filter. But that's not very pretty! Ideally an ALL option could be included in the Choice dropdown in the app but I cannot see how to add that to the choices derived from the table.
I'm a newcomer to the SharePoint/PowerApps platform but am impressed by the possibilities and would appreciate any suggestions. I have seen some other posts on this topic but none as yet seem to have resolved this scenario.
Thanks,
C