cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Manarjomar
Resolver I
Resolver I

I can't see a new column result (addcolumns from child table)

Hi there,

 

I need your help because I don't know what happen in my table.

 

I have this code in Item propety in the Parent table:

 

 

 

Sort(
     AddColumns(
            Filter(
                  '[dbo].[tbPO]';
                   IdProject = pry ;
                   TextSearchBoxPO.Text in Supplier || TextSearchBoxPO.Text in NSDC || TextSearchBoxPO.Text in IdPO || TextSearchBoxPO.Text in Address || TextSearchBoxPO.Text in County || TextSearchBoxPO.Text in CreatedBy || TextSearchBoxPO.Text in Notes   
             );
             "ImporteSum";
             Sum(Filter('[dbo].[tbPODetails]'; IdPO = Id); Importe);
             "Euros";
             CurrencyChange * Sum(Filter('[dbo].[tbPODetails]'; IdPO = Id); Importe)
     );
     IdPO;
     If(
        SortDescending;
        Ascending;
        Descending
    )
)

 

 

 

The code don't have errors and days ago works fine, but now, I don't know why I cant't see the result in the colum.

 

Screenshot_1.png

 

Screenshot_3.png

 

Someone have idea about what happend?

 

Thank you.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Finally I solve it!!

 

Only I changed the sum (filter) from the Id fields to the code fields (Purchase Order code - text field), and works perfect.

 

Sort(
     AddColumns(
            Filter(
                  '[dbo].[tbPO]';
                   IdProject = pry ;
                   TextSearchBoxPO.Text in Supplier || TextSearchBoxPO.Text in NSDC || TextSearchBoxPO.Text in NPO || TextSearchBoxPO.Text in Address || TextSearchBoxPO.Text in County || TextSearchBoxPO.Text in CreatedBy || TextSearchBoxPO.Text in Notes   
             );
             "ImporteSum";
             Sum(Filter('[dbo].[tbPODetails]'; PO = NPO); Importe);
             "Euros";
             CurrencyChange * Sum(Filter('[dbo].[tbPODetails]'; PO = NPO); Importe)
     );
     Id;
     If(
        SortDescending;
        Ascending;
        Descending
    )
)

 

The strange is that it worked before, but I haven't managed to know what happened.

 

Regards.

View solution in original post

4 REPLIES 4
timl
Super User III
Super User III

Hi @Manarjomar 

With these types of problem, I would first check that the data is correct.

Do you definitely have rows in '[dbo].[tbPODetails]' that match the Id?

Is CurrencyChange definitely not blank? If it is and you multiply it by the Sum, that would also produce a blank result.

@timl,

 

Yes, I checked all of that and (for me) all is good:

 

Screenshot_7.pngScreenshot_8.png

 

Any idea?

 

Thank you.

Other tests that I did...

 

- Delete and Make the FK and relation.

- Delete and create records in each table.

 

Nothing works...

Finally I solve it!!

 

Only I changed the sum (filter) from the Id fields to the code fields (Purchase Order code - text field), and works perfect.

 

Sort(
     AddColumns(
            Filter(
                  '[dbo].[tbPO]';
                   IdProject = pry ;
                   TextSearchBoxPO.Text in Supplier || TextSearchBoxPO.Text in NSDC || TextSearchBoxPO.Text in NPO || TextSearchBoxPO.Text in Address || TextSearchBoxPO.Text in County || TextSearchBoxPO.Text in CreatedBy || TextSearchBoxPO.Text in Notes   
             );
             "ImporteSum";
             Sum(Filter('[dbo].[tbPODetails]'; PO = NPO); Importe);
             "Euros";
             CurrencyChange * Sum(Filter('[dbo].[tbPODetails]'; PO = NPO); Importe)
     );
     Id;
     If(
        SortDescending;
        Ascending;
        Descending
    )
)

 

The strange is that it worked before, but I haven't managed to know what happened.

 

Regards.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,221)