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 / Join 3 tables with rel...
Power Apps
Unanswered

Join 3 tables with relation A 1:N to B and A 1:N to C

(1) ShareShare
ReportReport
Posted on by 2
Existem várias Transportadoras que cada uma delas possue vários camiões e vários atrelados portanto eu quero uma tabela com todos camiões e atrelados de cada uma das empresas. até já tentei o seguinte mas dá sempre erro
ClearCollect(
    TabelaUnificada,
    ForAll(
        Transportadora,
        With(
            {
                IDTransportadora: ID,
                NomeAbreviado: Abreviatura
            },
            ForAll(
                Filter(Camiao, swell_Transportadora = IDTransportadora),
                ForAll(
                    Filter(Atrelado1, swell_EmpresaAtre = IDTransportadora),
                    {
                        Transportadora: NomeAbreviado,
                        Camiao: Matricula,
                        Atrelado: MatriculaAtre
                    }
                )
            )
        )
    )
)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ClearCollect(
    TabelaUnificada,
    ForAll(
        Transportadora,
        ForAll(
            Filter(Camiao, swell_Transportadora = Transportadora[@ID]),
            ForAll(
                Filter(Atrelado1, swell_EmpresaAtre = Transportadora[@ID]),
                {
                    Transportadora: Transportadora[@Abreviatura],
                    Camiao: Matricula,
                    Atrelado: MatriculaAtre
                }
            )
        )
    )
)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
dá sempre o seguinte erro:
Número inválido de argumentos: 1 recebidos, 2 ou mais esperados. Carateres inesperados. A fórmula contém "Error" onde é esperado "ParenClose". Carateres inesperados. Os caracteres são utilizados na fórmula de forma inesperada.
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Try changing to use ThisRecord and indicate where the error is occurring by showing screenshot with the error. You can also provide the data structure of the tables and the link between them
     
    ClearCollect(
        TabelaUnificada,
        ForAll(
            Transportadora,
            With(
                {
                    IDTransportadora: ThisRecord.ID,
                    NomeAbreviado: ThisRecord.Abreviatura
                },
                ForAll(
                    Filter(Camiao, swell_Transportadora = IDTransportadora),
                    ForAll(
                        Filter(Atrelado1, swell_EmpresaAtre = IDTransportadora),
                        {
                            Transportadora: NomeAbreviado,
                            Camiao: Matricula,
                            Atrelado: MatriculaAtre
                        }
                    )
                )
            )
        )
    )

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard