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
Unanswered

jOIN IN TWO TABLE

(1) ShareShare
ReportReport
Posted on by

Hi, I need your help... I have to calculate the total, but only of the sales movements, therefore excluding the other movements. I have two tables: TESDOCUM where I have all the document types and the value of each of them, but I only need to take the sales and to do this I should do a join with the TIPODOCU table, in which I could do the join with the Code column and the Tipoprotoc of the TESDOCUM table, but I need to filter through TIPODOCU only those that have VE in the column, to then calculate the sale. I also attach a part of the code, but this part is missing. Sum( Filter( TESDOCUM; DATAPROTOC = Data_1.Text And MAGAZZINO = ThisItem.MAGAZZINO ); USR_TOTDOC ) I hope for your help. Thanks in advance

Giovanni1_0-1720082230183.png

 

Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @Giovanni1 ,

    you can use this code:

    Sum(
     Filter(
     TESDOCUM,
     DATAPROTOC = Data_1.Text And MAGAZZINO = ThisItem.MAGAZZINO And 
     TIPOPROTOC in Filter(TIPODOCU, CAUSALE = "VE").CODICE
     ),
     USR_TOTDOC
    )
  • Giovanni1 Profile Picture
    on at

    I have this message

    Giovanni1_0-1720083080633.png

     

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    @Giovanni1  can't understand the warning message not in english.

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Hey @Giovanni1 , 

     

    try this: 

    //In a Button or onChange OnVisible
    ClearCollect(colCODICE; Filter(TIPODOCU; CAUSALE = "VE").CODICE);;
    //
    Sum(
     Filter(
     TESDOCUM;
     DATAPROTOC = Data_1.Text And MAGAZZINO = ThisItem.MAGAZZINO And 
     TIPOPROTOC in colCODICE // MAybe you'll need to add a .Value
     );
     USR_TOTDOC
    )

    The error that you've got was a Delegation warning. This is a Workaround to this warning. It will still appear but it will not falsify your results like this. 

     

  • Giovanni1 Profile Picture
    on at

    Unfortunately, even with this attempt the message is the same. Does not display any results

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    The message will always display.

     

    could you check if there is Data inside the created Collection :

    colCODICE

     

  • Giovanni1 Profile Picture
    on at

    yes the data is present

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard