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 / SP lookup columns cust...
Power Apps
Answered

SP lookup columns customize forms

(0) ShareShare
ReportReport
Posted on by 443

Hallo,

 

i have 3 SP lists

1) 'Areas' with 2 columns (Lookup fields) "Workstream" & "Subworkstream"

2)'WorkStream' with 1 column "Title"

3) 'SubWorkStream' with 2 columns "Workstream" which is a lookup column to (WorkStream) list and "Sub-workstream"

 

i want to customize the form and Filter the subworkstream dropdown to match the selected result of the workstream dropdown.

 

I tried it using text columns "Workstream" & "Subworkstream" and it works like a charm.

But i want both columns to be lookup fields in the SP list. Any ideas people?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @marial16 ,

    Just so I get your requirements correct, you have a lookup column which you want to filter even further with the item selected in another lookup column?

    My first question is if PowerApps is the only interface used on this list as if so, there may be a much easier solution.

  • marial16 Profile Picture
    443 on at

    Hallo,

     

    Yes i only use powerapps and sharepoint so far in my app. i want to be able to update the list when i click on 'New' from the customized form.

     

    if these two columns were SLT columns in SP ,then i could change their text input properties from PowerApps as below:

    (WorkStreamTextDataCard):

    Distinct(WorkStream,Title)

    (subworkstreamTextDataCard):

    Filter(SubWorkStream, WorkstreamTitle = DataCardValue6.Selected.Result)

     

    where 'WorkstreamTitle' is an additional SLT column in SubWorkStream List!!

     

    However Lookup Columns as they are are giving me a headache!

    So I only came to match the Workstream LookUp column in Tasks List to the Title of the SubWorkStream List which is wrong apparently..

    ShowColumns(WorkStream,"Title","ID")    in PowerApps workstream datacard  and

    Filter(ShowColumns(SubWorkStream,"Title","Workstream"), Workstream.Value = DataCardValue3.Selected.Title)

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @marial16 ,

    Could you please share a bit more about your scenario?

    Do you want the "Subworkstream" Dropdown box (ComboBox) to show up corresponding Subworkstream options related to the selected Workstream option?

     

    I have made a test on my side, please consider take a try with the following workaround:

    Set the Items property of the "Subworkstream" ComboBox to following:

    Filter(
     Choices(Areas.Subworkstream),
     Value in Filter(SubWorkStream, Workstream.Value = WorkstreamComboBox.Selected.Value).Sub-workstream
    )

    Note: The WorkstreamComboBox represents the Workstream ComboBox within your Edit form, you need to replace it with actual control name from your Edit form.

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    OK @marial16 ,

    I will give you a syntax to work on - I have tested this and it works

    Filter(
     Choices([@Areas].Subworkstream),
     Value=WorkstreamComboBox.Selected.xxxx //xxxx is whatever the output of this box
    )

     

    Basically you have to take the existing Lookup choices and filter them with the output of the other combo box.

    What I was going to suggest earlier is that if you only use PowerApps as an interface, you can ditch the lookup columns all together (as I have) and write back to plain text fields, doing all the lookups in Power Apps.

    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.

  • marial16 Profile Picture
    443 on at

    this formula only allows me to use Title or ID. 

    When i type Value it says that the identifier is not recognized.

     

    i also changed the advance properties of the dropdown on the right menu to  Display fields ["Value"]. I still get an error

  • marial16 Profile Picture
    443 on at

    and even when i am not getting an error , the data in the subworkstream dropdown arent displayed!

  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    HI @marial16 ,

    That is why I had xxxx. So let's break this down - firstly, if you just put

    Choices([@Areas].Subworkstream)

    in the box, do you see the values you expect? Then put a label on the screen with (change to your name)

    YourWorkstreamComboBoxName.Selected.Title

    select something in the other box and see if it reflected in the label.
    If so, can you get the same value to appear in both places?

     

  • marial16 Profile Picture
    443 on at

    I am getting the ID value in Subworkstream dropdown with Choices([@Areas].Subworkstream)

  • Verified answer
    marial16 Profile Picture
    443 on at

    So, i tried matching the ids of the two lookup columns and..

     

    (subworkstreamDataCard):
    Filter(ShowColumns(SubWorkStream, "ID", "Workstream","Subworkstream"), Workstream.Id = DataCardValue3.Selected.ID)

     

    i seem to get my results!

    However i am still not sure if that is the best practice!

     

  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @marial16 ,

    Very nice workaround - same sort of principle but you are capturing the ID on both ends and matching it.

    The key is the ability (which you have) to understand the principle of matching two values that are generated from a choice made, we could have got there matching text values, but yours will certainly do the job.

     

    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.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard