Forum Discussion
WayneC
3 years agoRegular Visitor
Use reference table column as criteria in creating custom column in primary table
This may seem simple, I have been looking at several posts here on the forum, but cannot find a solution that I can even modify to fit my situation. I have two tables.. The primary table is used for...
- 3 years ago
=Table.FromRecords(Table.TransformRows(#"Renamed Columns",each _&Record.FromTable(#table({"Name","Value"},List.Transform({"Cristian","Melvin","Adam","Mario"},(x)=>{"cc_"&x,if Text.Contains([foreman],x) then "Yes" else "No"})))))
- 3 years ago
=Table.FromRecords(Table.TransformRows(#"Renamed Columns",each _&Record.FromTable(#table({"Name","Value"},List.Transform(ReferrenceTable[NameList],(x)=>{"cc_"&x,if Text.Contains([foreman],x) then "Yes" else "No"})))))
wdx223_Daniel
3 years agoCommunity Champion
=Table.FromRecords(Table.TransformRows(#"Renamed Columns",each _&Record.FromTable(#table({"Name","Value"},List.Transform(ReferrenceTable[NameList],(x)=>{"cc_"&x,if Text.Contains([foreman],x) then "Yes" else "No"})))))
WayneC
3 years agoRegular Visitor
Works perfectly , thank you!