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 / Get User Based on Choi...
Power Apps
Answered

Get User Based on Choice on 2 other Columns

(0) ShareShare
ReportReport
Posted on by 111

I am trying to build an app, where in my form I have a column Office ( choice: 12 different choice) and another column Team (choice: 6 different choice).

If I select lets say Office A and Team Sales, I want the other column  Team Lead( person or group )  to be autopopulated based on office and team. 

I have another list where the teams leads are mapped as below:

Office    Team     Team Lead

A            Sales      john, doe

A             IT          Test, Joe

B             HR         Test, Again   and so on.

 

How can i get Team lead autopopulated based on Office and Team Selection in PowerApps ?

 

Thank you for your help.

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    Hi @mssa12345 , You want to show the Team Lead on which type of control? If it is just a label control then this should work: 

     

     

    Set(gblvar,LookUp(OtherLIST, Office = dropdown.Selected.Value And Team = dropdown2.Selected.Value).TeamLead);

     

    The label text property could be 

    gblvar.DisplatName

    You need to use your control names.

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

    I hope this helps.

    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.

    Thanks,
    ANB

     

  • mssa12345 Profile Picture
    111 on at

    @ANB  thank you for the response. The team lead is a Person control type

    I have the code below on the onChange property of the Team datacard, but its showing error ( Error on equal sign)

    Set(gblvar,LookUp('Designed List', Office = DataCardValue52.Selected.Value And Team= DataCardValue10.Selected.Value).'Team Lead');

       

  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    Hi @mssa12345 ,  DataCardValue52 and DataCardValue10 which  i believe it is combo box/dropdown. So can you please share the screenshot of these 2 controls as below:

     

    ANB_0-1696003784097.png

     

    I want to know what is showing in Primary Text for both controls.

     

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

    I hope this helps.

    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.

    Thanks,
    ANB

     

  • mssa12345 Profile Picture
    111 on at

    @ANB yes they both are combobox/dropdown. I have attached the screenshot.

    10.PNG55.PNG

  • Verified answer
    ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    HI @mssa12345 , Sorry I missed this, Office and Team both are Choices datatype columns correct? If yes, then code should be

    Set(gblvar,LookUp('Designed List', Office.Value = DataCardValue52.Selected.Value And Team.Value = DataCardValue10.Selected.Value).'Team Lead');

     

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

    I hope this helps.

    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.

    Thanks,
    ANB

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
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard