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 / Dropdown autoselects v...
Power Apps
Answered

Dropdown autoselects value from another collumn of the same sharepoint item based on another dropdown value

(0) ShareShare
ReportReport
Posted on by 10

I am building an inventory request list where users can submit a request to provide a new laptop. Available laptop models are based on the department.

 

I made sharepoint list and creating a custom form with power apps. There are 3 dropdowns:

  • Department - users select department they work for
  • Laptop type - user friendly model eg "14' Dell, 16GB RAM"
  • Model - exact model name

These are cascading dropdowns based on Inventory list that has 3 columns: Department, Friendly-name, Exact Model.

 

Department in custom form just filters all distinct departments:

 

 

Items = Distinct('Inventory', Department.Value)

 

 

Laptop type menu is based on the selected department:

 

 

Items = Filter('Inventory', Department.Value = DataCardValue5.Selected.Value)

 

 

This all works fine the way I wanted. But I cannot figure out how to make Model dropdown autoselect the "Exact Model" value of the same sharepoint item. Eg if user selects "15' Lenovo, 32GB RAM" in Laptop type, the Model dropdown below autoselects the value "LASDF465465" (made it up) from Model field of the same sharepoint item that Laptop type is selected. All Laptop types and models are unique.

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @uraganas ,

     

    I am assuming that Laptop column and Model column are all text type, please try this:

    Model drop down
    Items:Distinct('Inventory',Model)
    Default:LookUp('Inventory',Department.Value=DataCardValue5.Selected.Value&&Laptop=LaptopDropDown.Selected.Laptop,Model)

     

    Best regards,

    Rimmon

  • uraganas Profile Picture
    10 on at

    Yes, both columns in sharepoint are single line text type. However, Lookup formula you have offered to use in Default property does not seem to work. It says that LookUp expects record type while "there is an error in your formula says "Data type: text"

  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @uraganas ,

     

    Are you using combo box?

    Please modify default code and put it on DefaultSelectedItems property:

    {Value:LookUp('Inventory',Department.Value=DataCardValue5.Selected.Value&&Laptop=LaptopDropDown.Selected.Laptop,Model)}

     

     

  • uraganas Profile Picture
    10 on at

    Thank you, this has helped. I did not know the difference between combo box and simple drop down menu, sorry for misleading.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard