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 get specific ce...
Power Apps
Unanswered

How to get specific cells from a SharePoint List row

(0) ShareShare
ReportReport
Posted on by 782

I have a dropdown list and 2 TextBox's. My dropdown contains the value I need to use to lookup what I need in a SharePoint List. I use the following Filter statement:

Sort(Filter(Available_Components, Location=dd_DataCardValue2.Selected.Location && Enabled="Y"), Component, Ascending)

 

However, I am receiving the message 'The function 'Sort' has some invalid arguments". I have tried not using Sort and just Filter, but it tells me I am missing an argument. Ultimately, I would like to find the best way to use the value from my dropdown to find the row in my SharePoint List to display 2 different cells in my 2 Textbox's.

 

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

    Hi @Greg27 ,

     

    Looks like you're missing "SortOrder".

     

    Assuming the Location field is a Single Line Text column, try:

     

     

    Sort(
     Filter(
     Available_Components,
     Location = dd_DataCardValue2.Selected.Location && Enabled = "Y"
     ),
     Component,
     SortOrder.Ascending
    )

     

     

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

     

    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.

    Imran-Ami Khan

  • Greg27 Profile Picture
    782 on at

    Sorry, if I put in SortOrder.Ascending, when I leave the field and come back in, it hides the SortOrder part of the command. I have Sort.Order.Ascending and it still doesn't like the command. It still tells me there is an error in the formula.

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Greg27 ,

     

    1. Please could you share a Screenshot together with the error message
    2. What are the field types for Location and Component
    3. What do you have in the Items property for your dropdown

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

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard