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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
hoppo
New Member

Conditional replace value

Hi, I can't quite get my conditional replace value to work. Fairly new to power query and sill learning, so any advice would be greatly appreciated. I want to change each value in the column [Advisor_FINAL] with the text "JW (PC)" only for those rows where  the date in column [FINAL_DATE] is less than 1st Aug 2022

 

I am getting an expression error, saying the name [Advisor_FINAL] isn't recognised (I have checked spellings and all correct). This is the code I have so far.... 

 

hoppo_2-1667908502825.png

 

1 ACCEPTED SOLUTION
HotChilli
Community Champion
Community Champion

columnsToSearch parameter i.e. the last one, should be the column name in quotes.  Try that.

View solution in original post

2 REPLIES 2
hoppo
New Member

@HotChilli  Thank you so much, and so simple! It had been driving me mad all morning.

HotChilli
Community Champion
Community Champion

columnsToSearch parameter i.e. the last one, should be the column name in quotes.  Try that.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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