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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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