cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

Lookup Using Drop Down Value

Dear All,

 

I having a problem to proceed a lookup by using a dropdown list. Details are as following:

- I have list called "TON_CompanyList"

 

2020-04-28 13_38_23-EMEA Central Logistics - TON_CompanyList - All Items.png

- User firstly select Company Country then Company Name

- Based on selected "origin company name" i need to proceed lookup and bring "Vendor Code" to my app.

Details as below:

Can you please support me to sort it out?

2020-04-28 13_42_53-Unread Mail - Ogun.Ustun@yazaki-europe.com - Outlook.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User III
Super User III

Your formula seem fine except if the user selects the Company name, then it should not be Dropdown.Selected.ID but

Dropdown.Selected.Company or

Dropdown.Selected.Value,

 

So:
LookUp(TableName,'Company name',Dropdown.Selected.'Company name','Vendor name')

LookUp(TableName,'Company name',Dropdown.Selected.Value,'Vendor name')

 

If you still get error, show the formula on the Dropdown, it will help

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

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Super User III
Super User III

Hi @Ogun_ustun Your code

LookUp(
   TON_CompanyList,
   'Company Name'=DDOriginCompanyName.Selected.ID
).'Vendor Code'

s failing probably because 'Company Name' is Text and DDOriginCompanyName.Selected.ID is numeric and will not match anyway. I cannot see your drop-down Items, but the value could be

LookUp(
   TON_CompanyList,
   'Company Name'=DDOriginCompanyName.Selected.'Company Name'
).'Vendor Code'

The .'CompanyName' may also be .Value or .Result depending on the Items of DDOriginCompanyName

 

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.

View solution in original post

2 REPLIES 2
Super User III
Super User III

Your formula seem fine except if the user selects the Company name, then it should not be Dropdown.Selected.ID but

Dropdown.Selected.Company or

Dropdown.Selected.Value,

 

So:
LookUp(TableName,'Company name',Dropdown.Selected.'Company name','Vendor name')

LookUp(TableName,'Company name',Dropdown.Selected.Value,'Vendor name')

 

If you still get error, show the formula on the Dropdown, it will help

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

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Super User III
Super User III

Hi @Ogun_ustun Your code

LookUp(
   TON_CompanyList,
   'Company Name'=DDOriginCompanyName.Selected.ID
).'Vendor Code'

s failing probably because 'Company Name' is Text and DDOriginCompanyName.Selected.ID is numeric and will not match anyway. I cannot see your drop-down Items, but the value could be

LookUp(
   TON_CompanyList,
   'Company Name'=DDOriginCompanyName.Selected.'Company Name'
).'Vendor Code'

The .'CompanyName' may also be .Value or .Result depending on the Items of DDOriginCompanyName

 

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.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (72,591)