cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lars1990
Helper II
Helper II

AddColumns to collection LookUp column

Hi all,

 

I am trying to add a column to a collection. The source is dataverse. The Tables are:

- DelistingActions with lookup DelistingID to Delistings table

- Delistings with lookup ProductID to Products table

- Products

I want to add the column ProductBrandDescription to the collection.  Using the method as described below does not work unfortunatly.

 

Anyone knows how to solve this?

 

KR, Lars

 

 

Lars1990_1-1641904456484.png

 

 

 

ClearCollect(
    colOpenActions,
    AddColumns(
        Filter(
            DelistingActions,
            'Delisting Status' = [@'Delisting Status'].Doing && Delisting.DelistStatus <> 'DelistStatus (Delistings)'.Cancelled
        ), "ProductBrandDescription",
        LookUp(
            Delistings,
            DelistingID = Delisting.DelistingID,
            Product.ProductBrandDescription)
    )
)

 

1 REPLY 1
RishabBehl31
Resolver I
Resolver I

Hey @Lars1990 ,

 

I think you might have followed the wrong approach here Delistings table doesn't have a "DelistingID" field that is why it might be giving that error.

 

But if "DelistingID" is the name of the unique identifier field in the "Delisting" Table then that's good.

 

Can you try with the below formula :

 

ClearCollect
(
mysamplecollection,
AddColumns(
DelistingActions,
"ProductDescription",
LookUp(
Delistings,
Delisting = DelistingID.Delisting,
Product.ProductDescription
)
)
)

 

You can replace the first parameter of the AddColumns function with what you've used since that is working fine.

 

In the third parameter which is a lookup function while writing condition parameter I have used

 

"Name of unique identifier field on Delisting Table" = "Column Name of Delisting Actions Table having lookup to delisting table"."Name of unique identifier field on Delisting Table"

 

Hope this helps.

 

Warmly,

 

Rishab

 

If this solves all good otherwise let me know what error you're facing?

 

----------------------------------------------------------------------------------------------------------------

Thanks for taking my inputs. If you're digging into it, a Thumbs up is appreciated! Or if my suggestion solved your issue, please Accept it as a solution. This way everyone would be able to get the solution if they face a similar problem.

 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,290)