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 / Obtain specific values...
Power Apps
Answered

Obtain specific values from a SharePoint List depending of one condition

(0) ShareShare
ReportReport
Posted on by 8

Good morning everyone,

I am developing an App in Power Apps with a database in SharePoint, and I need to obtain the value of one of the columns of one list depending on the value assigned in a variable called "_proyecto" but when I try to make it the formula gives me an empty array "[]". The code that I am using is the following:
"Set(_numeroEquipos;JSON(Filter(Proyectos;'Nombre del Proyecto'=_proyecto).'Numero de equipos'))".
Can you give a hand detecting the mistake?. I don't know if I have to use another method, or maybe I am missing something in the code.

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @OmarTorresM 

    Are you intentionally needing the JSON text of the record, or just the record?

     

    If you just need to Numero de equipos from a matching record, then this formula:

    Set(_numeroEquipos;
     LookUp(Proyectos;'Nombre del Proyecto'=_proyecto; 'Numero de equipos')
    )

     

    If you need a table of all records matching, then use this formula:

    Set(_numeroEquipos;
     Filter(Proyectos;'Nombre del Proyecto'=_proyecto.)'Numero de equipos')
    )

     

    I hope this is helpful for you.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard