Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello altrusits,
Can someone help me how to choose a column name as a source for the function List.Accumulate ?
Thanks in advance.
My code is as follows:
= Table.AddColumn(#"previous step", "new column", each List.Accumulate(Table.ToList(#"Table list here, this table has many columns so I want to specify the column name"),"",(state,current)=>
if Text.Contains([column to look forl],current,Comparer.OrdinalIgnoreCase)
then current&"/"&state
else state))
Solved! Go to Solution.
Hi @sparvez,
I guess you are questioning this bit?
Text.Contains([column to look forl],current,Comparer.OrdinalIgnoreCase)You can call a column in a table using the name of the column using
Table.Column(table as table, column as text) as list
Kind regards,
John
Hi @sparvez,
I guess you are questioning this bit?
Text.Contains([column to look forl],current,Comparer.OrdinalIgnoreCase)You can call a column in a table using the name of the column using
Table.Column(table as table, column as text) as list
Kind regards,
John
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |