cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Champion
Community Champion

Re: Lookup Using Drop Down Value

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

Highlighted
Community Champion
Community Champion

Re: Lookup Using Drop Down Value

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
Highlighted
Community Champion
Community Champion

Re: Lookup Using Drop Down Value

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

Highlighted
Community Champion
Community Champion

Re: Lookup Using Drop Down Value

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,228)