Hi Guys,
Currently I have a code that will add a " " value into my dropdown items. This allows me to show the user a default blank value prior to making a selection.
I have the below code in my items property within my dropdown list.
Sort(Distinct(
Filter(
Split(
Concatenate(
Concat(Types,Res &","),
" " &","
),","
),!IsBlank(Result)
),
Result
),Result)
This works fine if you want to show the whole collection in a dropdown list.
I want to apply a filter and still keep the blank value.
I dont know how to add in the filter within the above code. This is the filter I want to apply while still adding in the " " value.
Sort(Distinct(Filter(Types,Height= "720"),Res),Result)
Any help is greatly appreciated.
Thanks
Thank you so much. This worked 🙂
Hi @christian12 ,
Try
Ungroup(
Table(
{
dd:
Table(
{Result: ""}
)
},
{
dd:
Sort(
Distinct(
Filter(
Split(
Concat(
Types,
Res & ","
) & " ,",
","
),
!IsBlank(Result)
),
Result
),
Result
).Result
}
),
"dd"
)
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.
MVP (Business Applications) Visit my blog Practical Power Apps
Hi @christian12 ,
Nesting the data source (Types) in a filter should do the trick:
Sort(
Distinct(
Filter(
Split(
Concatenate(
Concat(
Filter(
Types,
Height= "720"
),
Res &","
),
" " &","
),
","
),
!IsBlank(Result)
),
Result
),
Result
)