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
Krzysztof_Zebro
New Member

Column non standard data format

Hello

 

I'm for a while now trying to find out how to approche below problem. 

 

After importing data from external source and some transformations I recive data in specific format.

 

eg. 4242_A03389_5_S690QL_RevA_szt2  --> number_text_number_text_text_text

 

In some cases data is missing first number block --> A03389_5_S690QL_RevA_szt2

 

Is there a way to check if data in column have a specific format as in first example or to chceck if data begins with numbers not text?

 

 

1 ACCEPTED SOLUTION
jgeddes
Super User
Super User

You can do this in Power Query with a custom column.

jgeddes_0-1713276111056.png

This will return 0 if the string starts with a number and -1 if it does not.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
Krzysztof_Zebro
New Member

Thank You. It have solve the problem.

jgeddes
Super User
Super User

You can do this in Power Query with a custom column.

jgeddes_0-1713276111056.png

This will return 0 if the string starts with a number and -1 if it does not.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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.