cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Hide other values from combobox

In my onvisible for the screen I have - Collect(
scen,
Sort(
Distinct(
UATData,
Scenario
),
Result
)
). My items in the gallery is this - Filter(
collUATMasterData,
C5 = "Sales",
If(
IsBlank(ComboBox1_2.Selected.Result) || ComboBox1_2.Selected.Result = "All items",
true,
C5 in ComboBox1_2.SelectedItems
) && If(
IsBlank(ComboBox1_3.Selected.Result) || ComboBox1_3.Selected.Result = "All items",
true,
C4 in ComboBox1_3.SelectedItems
)&& If(
IsBlank(Filter_1.Text),
true,
Filter_1.Text in C2
) && If(
IsBlank(Filter.Text),
true,
Filter.Text in C6
)
). Combobox1_3 has items: scen. My question is if there is a way to only show items in that combobox when C5 = "Sales", I tried doing this in the items of the combobox with no luck. My items in the gallery are being filtered by sales and I want to do the same with this combobox because it is pulling values for other C5=x and I only want it to show values from column C4 when C5="Sales". 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @powerapps890 ,

 

Would you like to make options that within a Combobox display only when a specific value selected in another Combobox?

 

If so, since Items of Combo boxes only accept tables, you will have to set a blank table, which has the same display fields, for the if statement that in Items property of the Combo box. For example:

If(C5 = "Sales", scen, Table({Result:""}))
//Or
If(C5 = "Sales", scen, {Result:""})

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @powerapps890 ,

 

Would you like to make options that within a Combobox display only when a specific value selected in another Combobox?

 

If so, since Items of Combo boxes only accept tables, you will have to set a blank table, which has the same display fields, for the if statement that in Items property of the Combo box. For example:

If(C5 = "Sales", scen, Table({Result:""}))
//Or
If(C5 = "Sales", scen, {Result:""})

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,328)