Hi
I have an application where I have one search box and two combo boxes and beneath is a gallery showing the data from a collection.
Previously i have just a search box to filter the gallery however I now need to implement the filter with the combo boxes. I have this working when you select the exact data however I would like it to show all data until the selection is made, I hope that makes sense?
Let me know if you can support on this issue 🙂
Solved! Go to Solution.
HI @Kmayes ,
You might share some code here, but the structure would be
Filter(
ListName,
(
IsBlank(ControlOutput1) ||
FieldName1 = ControlOutput1
) &&
(
IsBlank(ControlOutput2) ||
FieldName2 = ControlOutput2
)
)
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.
Visit my blog Practical Power Apps
HI @Kmayes ,
You might share some code here, but the structure would be
Filter(
ListName,
(
IsBlank(ControlOutput1) ||
FieldName1 = ControlOutput1
) &&
(
IsBlank(ControlOutput2) ||
FieldName2 = ControlOutput2
)
)
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.
Visit my blog Practical Power Apps
@WarrenBelz Apologies the code I currently have is
SortByColumns(Filter(LIST,Date=Blank() || Date=Today() , StartsWith(Postcode,TextSearchBox1_2.Text) , StartsWith('Coverage Area',COMBOBOX1.Selected.Value) , StartsWith(Workstream,COMBOX2.Selected.Value ))
, "Address_1",Ascending,"Address_2",Ascending)
Hi @Kmayes ,
Something like this structure should do it
SortByColumns(
Filter(
LIST,
(
Date = Blank() ||
Date = Today()
) &&
(
Len(TextSearchBox1_2.Text) = 0 ||
StartsWith(
Postcode,
TextSearchBox1_2.Text
)
) &&
(
Len(COMBOBOX1.Selected.Value) = 0 ||
'Coverage Area' = COMBOBOX1.Selected.Value
) &&
(
Len(COMBOBOX2.Selected.Value) = 0 ||
Workstream = COMBOX2.Selected.Value
)
),
"Address_1",
Ascending,
"Address_2",
Ascending
)
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.
Visit my blog Practical Power Apps
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
180 | |
51 | |
47 | |
32 | |
32 |
User | Count |
---|---|
266 | |
91 | |
78 | |
68 | |
67 |