Hello Powerapps community,
I'm having an issue in which I can pass multiple, selected Listbox values as a variable towards a filter in a gallery object.
Example:
My Listbox has values like "2020-04", "2020-03", "2020-02", "2020-01", etc....
The gallery contains Tickets (from a IT servicedesk) in which these tickets have a date period in which they're reported. (e.g. Ticket CCX0001 was reported in date period "2020-03" and CCX0002 was reported in date period "2020-04".)
However the Listbox saves the values as a Table, to which I can't simply extract the values from.
Here's how I store the values from the Listbox (in this instance called Listbox2) object:
OnSelect = UpdateContext({vSelected: ListBox2.SelectedItemsText.Value})
and to pass it to the Gallery I use:
Set(ReportingPeriod, Concat(ListBox2.SelectedItems.'Reporting Period', 'Reporting Period' & ";"))
then to filter the gallery, I use the following syntax:
Filter('[DWH].[POWERAPP_INPUT]','Reporting Period' in ReportingPeriod)
The Database Source is a SQL Server database running on Azure.