cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Floriankx Established Member
Established Member

Power Query - how to handover column to be used with 'each'

Hello,

 

I have the following formula 

Output=Table.AddColumn(TextToChange,"Changed Text", each ReplacementFunction([List]))     //[List]=Column name to change

If I try to replace list by a variable and integrate this row to a function. But even if I change to 

 

Output=Table.AddColumn(TextToChange,"Changed Text", each ReplacementFunction(TextToChange[List]))     //[List]=Column name to change

I receive an error because type 'list' can't be converted to 'text'.

So actually I am not able to handover this with a function because I only know how to handover lists and tables.

 

Do you have any idea how I can solve this issue? 

1 REPLY 1
Community Support Team
Community Support Team

Re: Power Query - how to handover column to be used with 'each'

Hi

Let me draw your attention to your formula below
Output=Table.AddColumn(TextToChange,"Changed Text", each ReplacementFunction(TextToChange[List]))

ReplacementFunction([List]) function need a parameter of type text, but TextToChange[List] return type of list.

 

Best Regards

Maggie

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors
Top Kudoed Authors