cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Column name as variable?

= (Source as table, optional Product as text) =>
let
   #"Replaced Value" = Table.ReplaceValue(Source, each Table.Column(Source, Product), each "xx", 
   Replacer.ReplaceText, {Product})
in
   #"Replaced Value"

Results in an error. How to do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Column name as variable?

Nvm, found out that you have to use Record.Field(_, Product) instead of Table.Column(Source, Product)

View solution in original post

1 REPLY 1
Highlighted

Re: Column name as variable?

Nvm, found out that you have to use Record.Field(_, Product) instead of Table.Column(Source, Product)

View solution in original post

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (3,371)