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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Replace Values

Hi All,

 

I have uploaded my dataset into Power BI and are using the Power Query editor to change cell values. This worked fine but when new data is entered into the dataset the values are not being replaced with my 'replace value' settings.

 

Any ideas on how to automate this? For example if I were replacing "blue" values to "red", any time a new line containing "blue" would automatically be replaced to "red".

 

Hope this is clear.

 

Many thanks,

 

Elliot 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

Maybe you can try to parameterize the 'replace value' function string with a query parameter, then you can change the query parameter to achieve dynamic replace effects.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

Maybe you can try to parameterize the 'replace value' function string with a query parameter, then you can change the query parameter to achieve dynamic replace effects.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
HotChilli
Super User
Super User

If you've used the 'Replace Values' from the column header and everything else is equal, it will work.  So something is different about the new data (e.g. case)

Fowmy
Super User
Super User

@Anonymous 

As you said the Replacevalue is part of the Query transformation so any new data added should go through the replace value process, can you share the M code?

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.