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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
AnandAmirtharaj
Regular Visitor

Replace dynamic values in Query editor

Hi Everybody,

 

In Column A i need to Find and Replace dynamic values:

 

Example: Its always # and additional 2 numeric values like #23. This numeric 23 will keep changing dynamically picking up from database. Please help me how do i find and replace this # and two numeric characters always?

 

Thank you in advance

 

Regards,

Anand

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @AnandAmirtharaj,

 

What's your expected result?

 

In DAX, REPLACE replaces part of a text string, based on the number of characters you specify, with a different text string.
https://msdn.microsoft.com/en-us/library/ee634374.aspx

 

Please provide us more information, so that we can make further analysis.

 

Regards,

Charlie Liao

Hi v-caliao-msft,

 

The field will always contain example as below

 

Actual field (single column): www.abc.com@EmployeeID1#11;#www.abc.com@EmployeeID2#32;#www.abc.com@EmployeeID3....

 

Expected Result field (single column): EmployeeID1, EmployeeID2.... and so on

 

Here is the above scenario i always wanted to extract only Employee ID i.e. the field to say EmployeeID1, Employee2 and so on. But the challenge is (refereing above example) the numbers 11 and 32 and so on.... could be any number that will change dynamically

 

Please help !

 

Regards,

Anand

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors