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 / Finding a value in a S...
Power Apps
Answered

Finding a value in a Sharepoint Table when both the column and row are determined by a label's value filled in by the user

(0) ShareShare
ReportReport
Posted on by 3

I am trying to find a value in a SharePoint table where the user inputs both the column and row. For example, if a user inputs 1 for the first label and 119 into the second label it would output 0.3. I am aware that variable names cannot be column names, but what is a way I can accomplish this if there are over 100 rows and columns? (All labels are restricted to taking numbers)

Example.PNG
Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Hi @Tomato1 ,

     

    You're correct in that unfortunately, you cannot leverage data fields as variables. You would need a fairly lengthy Switch condition to identify which column to use. Fortunately, you can use the Index function to reference the row.

     

    For example:

     

     

     

    Switch(
     TextInput_Column.Text,
     "Column 1",
     Index(
     'Your Data',
     Value(TextInput_Row.Text)
     ).'Your number field',
     "Column 2",
     Index(
     'Your Data',
     Value(TextInput_Row.Text)
     ).'Your number field'
    )

     

     

     

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

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

     

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard