Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Giovanni1 Profile Picture
    on at
    Re: jOIN IN TWO TABLE

    yes the data is present

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: jOIN IN TWO TABLE

    The message will always display.

     

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

    colCODICE

     

  • Giovanni1 Profile Picture
    on at
    Re: jOIN IN TWO TABLE

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

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: jOIN IN TWO TABLE

    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. 

     

  • anandm08 Profile Picture
    1,936 Super User 2025 Season 1 on at
    Re: jOIN IN TWO TABLE

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

  • Giovanni1 Profile Picture
    on at
    Re: jOIN IN TWO TABLE

    I have this message

    Giovanni1_0-1720083080633.png

     

  • anandm08 Profile Picture
    1,936 Super User 2025 Season 1 on at
    Re: jOIN IN TWO TABLE

    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
    )

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard