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 / SharePoint List form f...
Power Apps
Answered

SharePoint List form filter lookup columns to unique values then filter secondary lookup column

(0) ShareShare
ReportReport
Posted on by 5

I am customizing a SharePoint list form using Power Apps and I can not get my columns to correctly cascade.

2 columns, "Divisions" and "Business Groups" in Stuff list with lookup columns located in Main list for lookup

 

DivisionsBusiness Groups
ITData Services
ITNetwork Services
ITService Desk
FinanceAccounting
HRPayroll
HRBenefits
SalesResidential
SalesCommercial

 

I need the Divisions column to only display the unique choices: IT, Finance, HR, and Sales. 

Tried Distinct('Main list for lookup',Divisions.Value) but it fails 

Then I try to filter Business Groups by that field using Filter('Main list for lookup',BusinessGroups.Value = DataCardValue4.Selected.Value) and that doesn't work either. (Tried a lot of formulas, but those are the two most popular suggestions I've found for these situations)
 
GrokitechIT_0-1715038151705.png
Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @GrokitechIT ,

     

    Could you please share more details about your scenario? When you say the two formulas failed, what phenomenon can you see? Was any error there?

     

    If you want to get unique values from Divisions column, you can use the values that are in Stuff list directly:

    Distinct(Stuff.Divisions)

     

    then for the Business Groups Combo box, Items property set to:

    Filter(Staff, Divisions = DataCardValue3.Selected.Value).'Business Groups'

     

    Since they are two LookUp column in the main list, Update property of respective Data Card should be:

    LookUp(Choices('Main list for lookup'.Divisions), Value = DivisionComboBox.Selected.Value)
    LookUp(Choices('Main list for lookup'.'Business Groups'), Value = BusinessGroupsComboBox.Selected.'Business Groups')

     

    Best regards,

  • GrokitechIT Profile Picture
    5 on at

    This is a SharePoint List form, the fields are choice dropdowns. I am not trying to add the second list to this, it is where the lookup columns are sourced, not located, apologies if that confused.

    My errors with Distinct('Main list for lookup',Divisions.Value) is that it is acceptable code, but produces no results in the dropdown when the app is played. 

    GrokitechIT_0-1715079776843.pngGrokitechIT_1-1715079882028.png

    The blue is my clicking on the control and getting no results. 

    This is all in one list for a New/Edit/View form.

    When I try

    Distinct(Stuff.Divisions)

    I get this error immediately. 

    GrokitechIT_0-1715078152001.png

    The second formula also doesn't work. 

    GrokitechIT_1-1715078372522.png

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @GrokitechIT ,

     

    Sorry for the late reply. The first formula should be

    Distinct(Stuff, Divisions)

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard