cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Lookup Dropdown and show table value in textbox

So I have a dropdown populated with a column table "Bds":

 

 

Distinct(Bds,Categoria)

 

 

I want the user to select a category from that dropdown and populate a textbox with data from that same table, for example I have this table example:

CategoriaBd1
Categoria 1Result

As I understood if I use this formula on Default of the Textbox should do the trick but it is not bringing the result:

 

 

LookUp(Bds,
Categoria =
"Dropdown.Selected.Result",
'Bd1')

 

 

It is Looking in Bds table, column Categoria for the selected dropdown result  and it should bring me "Result" As the dropdown is populated within the same table there should be a exact match. What am I doing wrong?

1 ACCEPTED SOLUTION

Accepted Solutions

Use:

LookUp(Bds,Categoria = TextBox1.Text,'Base de datos1')

It means your table is called Bds

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

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

8 REPLIES 8
eka24
Super User
Super User

In the default of the TextBox, use:

     Dropdown1.Selected.Result

 

Change the Dropdown1 to the actual name of the Dropdown

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

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.

Hi @Anonymous 

@eka24  is correct.  The Distinct() function creates a single column table of unique values from the datasource and renames the column "Result"

Anonymous
Not applicable

But that will bring the exact same value as the dropdown, now If I choose Category 1 in the dropdown it shows Category 1 in the textbox.

I want to choose Category 1 in the dropdown and bring "Result" in the textbox, meaning that the value is in the second column in the table "Bds", row1.

 

is it possible?

In the default of the TextBox1, use:

     Dropdown1.Selected.Result

 

Then Insert another TextBox2 Default Put:

   LookUp(TableName,Categoria=TextBox1,Bds)

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

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.

Anonymous
Not applicable

@eka24I tried it, but it is bringing again an empty result 😕

The textbox1 is populated but the next one that should bring the result does not.

LookUp(Bds,
Categoria = "TextBox1",
'Base de datos1')

 

I added a screenshot of the table, I want to look Categoria 1 and give the second column of that row.

 

Use:

LookUp(Bds,Categoria = TextBox1.Text,'Base de datos1')

It means your table is called Bds

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

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.

is the issue Resolved

Anonymous
Not applicable

@eka24 @Drrickryp 
Sorry for the late reply!

 

Had to do the app again, some issue with the source.

 

But yes!!! All good now. App is finally completed.

 

Thank you so much!

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,617)