Forum Discussion
AdamPayne
1 year agoNew Member
Extracting cell value and populating a column, but with criteria to change value
Hi, I've tried searching elsewhere but I'm struggling to find a solution that I follow. Hoping someone on here can help. In power query I want to populate a new column with a value in column2 and...
slorin
Super User
1 year agoHi AdamPayne
=Table.Combine(
Table.Group(
Your_Source,
{"Source.Name"},
{{"Data", (x) =>
Table.AddIndexColumn(
Table.AddColumn(x, "NEW COLUMN", each Text.Combine(x[Column2])),
"Index", 1),
type table}}
)[Data]
)
Stéphane
MCG
Helper I
1 year agohow about
let
filter=[Source.Name],
result_table=Table.SelectRows(XXX,each [Source.Name]=filter),
result=List.Max(result_table[Column2])
in result
change XXX to your source step