web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add lookup columns fro...
Power Apps
Unanswered

Add lookup columns from a parent table to a child table

(0) ShareShare
ReportReport
Posted on by 175

hey guys,

 

I'm trying to add search columns from a parent table to a child table, the formula is adding only one column, but the code is the same for all, I don't know what could be going wrong

 

 

If(
 App.ActiveScreen.Name = Screen3.Name;
 With(
 {
 tbRecomendacaoId: AddColumns(
 tbRecomendacao;
 "idRecomendacaoNr";
 Value(idRecomendacao)
 )
 };
 SortByColumns(
 Filter(
 AddColumns(
 tbMonitoramento;
 "idRecomendacaoValor";
 LookUp(
 tbRecomendacaoId;
 idRecomendacaoNr = tbMonitoramento[@idRecomendacao] ;
 idRecomendacao
 );
 "nrProcedimentoAdministrativo2";
 LookUp(
 tbRecomendacaoId;
 idRecomendacaoNr = tbMonitoramento[@idRecomendacao];
 nrProcedimentoAdministrativo
 );
 "nrSituacao";
 LookUp(
 tbRecomendacaoId;
 idRecomendacaoNr = tbMonitoramento[@idRecomendacao];
 nrSituacaoRecomendacao
 );
 "sgJurisdicionadoRecomendacao";
 LookUp(
 tbRecomendacaoId;
 idRecomendacaoNr = tbMonitoramento[@idRecomendacao];
 sgJurisdicionado
 )
 );
 nrConclusaoMonitoramento = Blank()
 );
 "idRecomendacaoValor"
 )
 )
)

 

 

Captura de Tela 2023-02-10 às 16.42.10.png

 

 

if you can help me

Categories:
I have the same question (0)
  • Verified answer
    galdezanni Profile Picture
    175 on at

    fixed, it was probably delegation problem

     

    however the documentation is bad and powerApps did not give a delegation message

     

    this is really bad because we have to try to guess what could be going on

     

     

    If(
     App.ActiveScreen.Name = Screen3.Name;
     With(
     {
     tbRecomendacaoId: AddColumns(
     tbRecomendacao;
     "idRecomendacaoNr";
     Value(idRecomendacao)
     );
    
     tbRecomendacaoFiltrada: Filter(tbRecomendacao; nrSituacaoRecomendacao = 10).idRecomendacao
     };
     SortByColumns(
     Filter(
     AddColumns(
     tbMonitoramento;
     "idRecomendacaoValor";
     LookUp(
     tbRecomendacaoId;
     idRecomendacaoNr = tbMonitoramento[@idRecomendacao] ;
     idRecomendacao
     );
     "nrProcedimentoAdministrativo2";
     LookUp(
     tbRecomendacaoId;
     idRecomendacaoNr = tbMonitoramento[@idRecomendacao];
     nrProcedimentoAdministrativo
     );
     "nrSituacao";
     LookUp(
     tbRecomendacaoId;
     idRecomendacaoNr = tbMonitoramento[@idRecomendacao];
     nrSituacaoRecomendacao
     );
     "sgJurisdicionadoRecomendacao";
     LookUp(
     tbRecomendacaoId;
     idRecomendacaoNr = tbMonitoramento[@idRecomendacao];
     sgJurisdicionado
     )
     );
     nrConclusaoMonitoramento = Blank() && idRecomendacao in tbRecomendacaoFiltrada
     );
     "idRecomendacaoValor"
     )
     )
    )

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard