Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I know, Power BI provide Replace fiunction Out Of the Box.
Still, I want to create a Custom Function (M function) which will read value from the dataset for find and Replace with a word.
How to create this function and call the function on a specific column of a table.
Example:
I have County column in a database. For County I want to create a function which will read the Find value from another dataset and replace found word with another column named "Replaced value".
How to achieve this requirement?
Hi,
If you are willing to use another column, you can simply join the two tables.
Hi @Dhruvin
Let me confirm the requirement with you
find the value "a" in "country" column in table1, then replace the "a" with another value from another table.
If my understanding is correct, here is a thread you could refer to
Best Regards
Maggie
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 40 | |
| 37 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 37 | |
| 28 | |
| 27 |