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 / Values based on the te...
Power Apps
Answered

Values based on the text box

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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 

 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    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@microsoft.com Profile Picture
    Microsoft Employee on at

    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 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    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.

     

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard