web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filterring the Values ...
Power Apps
Answered

Filterring the Values of a Dropdown and of a Gallery

(0) ShareShare
ReportReport
Posted on by 14,615 Super User 2026 Season 1

Hey Everybody,

 

I have a Formscreen (no Editform, just put the fields there) where i have a dropdown cotrol on it. As values i want to have data of a colum from a sharepoint list.

 

That is what i tried,its not giving me any errors but i also have no values when i play the app and click on the dropdown:

 

Distinct('Legal Entities and Heads', LegalEntity)

 

that should give ma all items in the dropdown but it does not. But i even need a more complex filter on the items in the gallery.

In this table you can see my colums and the description of what is inside the column. They are all single line of text colums.

LegalEntityHeadofEntityHeadofEntityEmailEditroleSeerole
CompanyNameName of PersonEmail of Person0 or 10 or 1

 

If the Value of Editrole is 0 they only should be able to edit the items of the LegalEntity they are responsible for. If the value is 1 they should be able to edit every legalentity available.

they also only should be able to choose the legalentity they are resposible for in the dropdown.

 

if that important, i patch the submissions to another sharepoint liste (so not the same one). And yes i added them both as connections.

 

Someday i would need to apply the same filtering on the gallery where i store the finished submissions. if the Value of Seerole is 0 they can only see the entries of the LegalEntity they are responsible. If the Value is 1 they should be able to see all items inside th gallery.

 

can somebody help me with that?

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at

    I partly solved my issue, now i can see all the values of the column.

     

    i would only need assistance by filtering them out when editrole is 0 or 1.

     

    thanks

     

  • Verified answer
    mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at

    i found a solution to this issue myself

     

    this is how i did it.

    On the OnVisible of the home Screen i put

     

    ClearCollect(MyCollection, [@'Legal Entities and Heads']);
    Set(currentEditRole, LookUp(MyCollection, HeadofEntityEmail = User().Email).EditRole);

    on the items property of the dropdown i put this:

    If(
     Value(currentEditRole) = 1,
     Distinct(MyCollection, LegalEntity),
     Distinct(
     Filter(
     MyCollection,
     HeadofEntityEmail = User().Email
     ),
     LegalEntity
     )
    )

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard