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

Values based on the text box

Hi,

I am creating a canvas,

I have used a text box for a question .

for answers I have created a dropdown.

User need to know the what was the answer he had given last time. I have those values in my excel.

I want previous year answer to be automatically picked from excel based on the question which is there is the text box?

Is this possible to achieve ?

Please help me 

 

1 ACCEPTED SOLUTION

Accepted Solutions

What you need is the reply I provided. Did you try it. What is the name of your table.

 

Assuming your Dropdown1 items is:

Table1.Question where you would be selecting the questions,

 

In the Default of another Textbox, put;

LookUp(Table1, Question=Dropdown1.Selected.Value, Previous Year Score')

Or

LookUp(Table1, Question=Dropdown1.Selected.Question, 'Previous Year Score')

 

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

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

4 REPLIES 4
eka24
Super User
Super User

In the Default of another Textbox, put;

LookUp(Table1, Question=Dropdown1.Selected.Value,Answer)

Or

LookUp(Table1, Question=Dropdown1.Selected.Question,Answer)

If you have issues, give a screenshot of the excel table.

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

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.

 

 

v-qiaqi-msft
Community Support
Community Support

Hi@raks3,

Could you please share more details about your scenario?

It will be appreciated if you can post a screenshot about your excel table.

Do you want to populate the Dropdown with the corresponding question in the text box?

I have a test on my side, please take a try as below.

Set the Items property of the DropDown as below.

 

Filter(Table2,Question=TextInput1.Text).Answer

 

You can check the GIF for reference.

0721Gif1.gif

Best Regards,

Qi 

Best Regards,
Qi
Anonymous
Not applicable

QuestionPrevious Year ScoreCurrent Year Score
AAAA5 
BBBB4 
CCCC2 

 

I have question in my canvas those questions in a box and I want to my previous year score to be printed automatically.

 

What you need is the reply I provided. Did you try it. What is the name of your table.

 

Assuming your Dropdown1 items is:

Table1.Question where you would be selecting the questions,

 

In the Default of another Textbox, put;

LookUp(Table1, Question=Dropdown1.Selected.Value, Previous Year Score')

Or

LookUp(Table1, Question=Dropdown1.Selected.Question, 'Previous Year Score')

 

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

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.

Helpful resources

Announcements
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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,992)