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 Apps
Answered

Doubt with formula

(0) ShareShare
ReportReport
Posted on by 308

Hi

 

I have 3 sharepoint lists: END, UN, INTEGRANTES.

 

In a screen I have a calculated label, that need to look up for all unities in list "UN" that matchs with ID and then sum all people that work there in list "INTEGRANTES".

 

I have this formula that isn't working

LookUp(INTEGRANTES;Filter(UN;Idend=ThisItem.Idend);Sum(OFICIAL_DE_PROMOTORIA_CHEFE;OFICIAL_DE_PROMOTORIA_I;AUXILIAR_DE_PROMOTORIA_CHEFE;AUXILIAR_DE_PROMOTORIA_ENCARREGADO;AUXILIAR_DE_PROMOTORIA_I;AUXILIAR_DE_PROMOTORIA_II;AUXILIAR_DE_PROMOTORIA_III;ANALISTA_DE_PROMOTORIA_I;ANALISTA_DE_PROMOTORIA_II;ANALISTA_JURIDICO_DO_MP;ANALISTA_TECNICO_CIENTIFICO_DO_MP;'ANALISTA_DE_PROMOTORIA_I_(SAUDE)';DIRETOR_DE_AREA_DO_MP;DIRETOR_DE_DEPARTAMENTO_DO_MP;ASSESSOR_DE_DIRECAO_DO_MP;ASSESSOR_DE_GABINETE_DO_MP;ASSESSOR_DO_MP;ASSESSOR_ESPECIAL_DO_MP;ESTAGIARIOS_DE_GRADUACAO;ESTAGIARIOS_DE_NIVEL_MÉDIO;PROCURADOR_DE_JUSTICA;PROCURADOR_GERAL_DE_JUSTICA;PROMOTOR_DE_JUSTICA;PROMOTOR_DE_JUSTICA_SUBSTITUTO;SECRETARIO_DO_MP))
 
What I did wrong?
Thanks for help
Categories:
I have the same question (0)
  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at

    what is your data source? 

    Your lookup and filter are not used correctly.

    You have Lookup(Datasource;filter(),valuetoreturn)

    Should be Lookup(Datasource;condition,valuetoreturn)

    Like LookUp(Integrantes,Idend=ThisItem(Idend,Sum(...)

    what is UN? is that a different list? 

    You are telling it to look up a value from integrated without giving it a column in that list to match against?

     

    If I could make a suggestion, you might want to consider doing a calculated field in your data source (assuming it is SharePoint or CDS)

    That will be a lot easier.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard