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

check if the dropdown value is in the gallery

I have a dropdown choice field and a field on each item with "ids", I would like items where there are more than one ID to show also ...

 

It only shows items that have an ID selected

 

Here the screenshot: 

 

dropdown with id

1.png

 

the gallery showing in each item the selected ids

2.png

 

If I select id 68, it only shows one item, and it was to show two:

Gorilla_8_4-1613480964358.png

-----------------------------------------------------------------------------------

 

The green label is a concatenated field to show the id's:

 

Concat(ThisItem.IDDemanda;Value;";")

 

 

And the filter is:

If(
    IsBlank(Dropdown1.Selected.Value);
    FichaDeAnalise;
    Filter(
        FichaDeAnalise;
        Concat(
            IDDemanda;
            Value;
            ";"
        ) = Label6.Text
    )
)

 

4 REPLIES 4
rubin_boer
Super User
Super User

hi @Gorilla_8 try this:

 

datasource = _Multi, Column to check is Val

Filter(AddColumns(_Multi,"all",Sum(ForAll(Split(TextInput10.Text, ","),Find(Result, Val)),
Value)),all > 0)

rubin_boer_0-1613483907751.png

 

 

 
Gorilla_8
Post Prodigy
Post Prodigy

Hi @rubin_boer 

 

I got  an error:

"the function 'addcolumns' has invalid arguments"

 

Gorilla_8_0-1613487725013.png

 

rubin_boer
Super User
Super User

hi @Gorilla_8  on my side it works like a charm

rubin_boer_0-1613488550098.png

 

Filter(AddColumns(YourData,"all",Sum(ForAll(Split(Dropdown1.Selected.Value,","),Find(Result,The ColumnYouWishToSearch)),Value)),all>0)

 
Gorilla_8
Post Prodigy
Post Prodigy

Hi @rubin_boer 

 

Error: "invalid argument type. expecting a text value instead"

Gorilla_8_0-1613490738541.png

 

 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,875)