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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Krzysztof_Zebro
Regular Visitor

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
Regular Visitor

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.