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 / How to display 1 Cell ...
Power Apps
Answered

How to display 1 Cell value based on 2 inputs

(0) ShareShare
ReportReport
Posted on by 12

Hi there, I am trying to create a power apps using 2 different drop down inputs, to display 1 value, for example, choosing 1 and 1/1/2023 to display 39723. How do I do that? This data is stored as an excel sheet

20240228_142016.jpg

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @bbx ,

     

    If you would like to display a field value based on selected column and row values, you'll need below formula:

    LookUp(Table, Date = DateDropdown.Selected.Value, Switch(ColumnDropdown.Selected.Value,"1",1,"2",2))

     

    Best regards,

  • bbx Profile Picture
    12 on at

    Hi @v-jefferni ,

     

    So I will have to create 2 different drop downs with the relevant options, then use a text label with the above formula?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @bbx ,

     

    The formula is specific to your requirement that you have two dropdowns and one text label.

     

    Best regards,

  • bbx Profile Picture
    12 on at

    Hi @v-jefferni ,

     

    I am unable to create the dropdown for choosing either 1 or 2. Could you maybe show how to create the dropdown for choosing the columns?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @bbx ,

     

    It should be a static table with only the column names in Text:

    ["1","2","3",...]

     

    Best regards,

  • bbx Profile Picture
    12 on at

    Hi @v-jefferni 

     

    I have tried as you mentioned, but I am unable to display the desired result, for the ColumnDropdown options, I linked it to a separate table

    20240228_174153.jpg

    20240228_174204.jpg

    20240228_174211.jpg

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @bbx ,

     

    Please show me the Items property of the two dropdowns. If you use a fixed table in column dropdown, there shouldn't be the error in that part:

    vjefferni_0-1709113982071.png

    vjefferni_1-1709113994603.png

     

    Items of DateDropdown should be the follow:

    TableName.Date

     

    and formula:

    LookUp(Table, Date = DateDropdown.Selected.Date, Switch(ColumnDropdown.Selected.Value,"1",1,"2",2))

     

    Best regards,

  • bbx Profile Picture
    12 on at

    Hi @v-jefferni 

     

    I have tried using your suggestions, only thing the LookUp function doesn't show the value that I want, it only shows either 1 or 2

    20240228_185157.jpg
    20240228_185130.jpg
    20240228_185138.jpg
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @bbx ,

     

    Sorry, it seems the LookUp function doesn't accept Switch function result to determine the display column. Please try below formula:

    Switch(ColumnDropdown.Selected.Value,"1",LookUp(Table, Date = DateDropdown.Selected.Date).1,"2",LookUp(Table, Date = DateDropdown.Selected.Date).2)

    1 and 2 should be the internal column name from excel table. So you should be able to select from hint dropdown when pressing a dot after LookUp function.

     

    Best regards,

  • bbx Profile Picture
    12 on at

    Hi @v-jefferni 

     

    Thank you so much for your help! It works now, I just need to expand this for a much bigger data set. Thanks!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard