Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
sparvez
Helper I
Helper I

List.Accumulate source column name

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))

1 ACCEPTED SOLUTION
jbwtp
Memorable Member
Memorable Member

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 

View solution in original post

2 REPLIES 2
sparvez
Helper I
Helper I

@jbwtp Super thanks.

Table.Column(table as table, column as text) as list

 It worked perfectly.  

jbwtp
Memorable Member
Memorable Member

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 

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.