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
Anonymous
Not applicable

How to canonicalize strings in a field?

Hi All, I have a table of server responses I'm trying to report on, but while the same response comes back over and over again, it will have small variations: an IP address in one response that varies, a user ID in another that is referenced in the response, a hostname of the server giving the response that varies.

 

Is there any mechanism for canonicalizing these strings to make them consistent and reportable?

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

Hi@ MHillyer

What is your data source and what form is the data, You could do these by built-in function in Transform of  Edit Queries. For example replace the value ,etc.

Please share some data sample and the expected output. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.

 

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Seward12533
Solution Sage
Solution Sage

Can you provide some examples of the responses and the format you would like to see.  I have a report that I deconstruct URL into Site, BASE_URLs (Main Pages), Pages and then extracts parameters into columns. In M the Split command is very useful. 

Anonymous
Not applicable

A simpler example would be that if there's any IP address I'd like to replace it with a.b.c.d (55.55.232.33 becomes a.b.c.d and 76.233.23.44 becomes a.b.c.d).

 

Harder examples are when a message says "user not found: Bob" and "user not found: George" and getting those to collapse down, ideally without having to write a new rule for every new case.

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.