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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (3,716)