Hi @Anonymous,
Could you please share more details about your need?
How you set the Items property of SectorDD and SoftwareDD, Choices('K.E.Y.S'.Software)?
Is there an option like "-" existing in your Sector and Software or you just want to represent it as blank?
Please do answer the above questions.
I assume that you have a "-" option in your Choice column, and you want to filter the 'K.E.Y.S' based on different If statement.
I have a test on my side, please take a try as below.
In my scenario, SingleChoice and Projects are both Choice data type, Combo Box11 and Combo Box12 represents SingleChoice and Projects.
I set the Items property of the Combo Box as below:
Choices(SPList1.SingleChoice) // For Combo Box11 Items
Choices(SPList1.Projects) // For Combo Box12 Items
Set the Items property of the Gallery as below:
Search(
If(
//All,All,All
ComboBox11.Selected.Value = "-" And ComboBox12.Selected.Value = "-",
SPList1,
//Specific,All
ComboBox11.Selected.Value <> "-" And ComboBox12.Selected.Value = "-",
Filter(
SPList1,
SingleChoice.Value = ComboBox11.Selected.Value
),
//all,specific
ComboBox11.Selected.Value = "-" And ComboBox12.Selected.Value <> "-",
Filter(
SPList1,
Projects.Value = ComboBox12.Selected.Value
),
//specific,specific
ComboBox11.Selected.Value <> "-" And ComboBox12.Selected.Value <> "-",
Filter(
SPList1,
SingleChoice.Value = ComboBox11.Selected.Value And Projects.Value = ComboBox12.Selected.Value
)
),
TextInput6.Text,
"Title"
)
Note that I have a SP list as my data source and you should refer to Choice column as Sect.Value.
On your side, please modify as below:
Search(
If(
//All,All,All
SectorDD.Selected.Value = "-" And SoftwareDD.Selected.Value = "-",
'K.E.Y.S',
//Specific,All
SectorDD.Selected.Value <> "-" And SoftwareDD.Selected.Value = "-",
Filter('K.E.Y.S', Sect.Value = SectorDD.Selected.Value),
//all,specific
SectorDD.Selected.Value = "-" And SoftwareDD.Selected.Value <> "-",
Filter('K.E.Y.S', Software.Value = SoftwareDD.Selected.Value),
//specific,specific
SectorDD.Selected.Value <> "-" And SoftwareDD.Selected.Value <> "-",
Filter('K.E.Y.S', Sect.Value= SectorDD.Selected.Value And Software.Value = SoftwareDD.Selected.Value)
),
KeySearch.Text,
"cr0fd_name"
)
Check if this could help you.
Regards,
Qi