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
ClearCollect(
colOpenActions,
AddColumns(
Filter(
DelistingActions,
'Delisting Status' = [@'Delisting Status'].Doing && Delisting.DelistStatus <> 'DelistStatus (Delistings)'.Cancelled
), "ProductBrandDescription",
LookUp(
Delistings,
DelistingID = Delisting.DelistingID,
Product.ProductBrandDescription)
)
)
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.
mmbr1606
22
Super User 2025 Season 1
stampcoin
19
Michael E. Gernaey
15
Super User 2025 Season 1