Skip to main content

Power BI

Needs Votes

Regular Expressions support in Power Query

Vote (622) Share
Marco's profile image

Marco on 16 Jul 2015 14:17:27

We think regexp support will help the adoption of the Power Query tool in the most demanding use cases. Many thanks.

Comments (41)
Marco's profile image Profile Picture

f0a7c4ff 6b63-46ff-b328-489e7c995c93 on 10 Jul 2020 17:20:37

RE: Regular Expressions support in Power Query

Regex is a good option to add in M environnement

Marco's profile image Profile Picture

2db011b5 fea0-4b32-abb3-f661083ac0de on 06 Jul 2020 00:17:55

RE: Regular Expressions support in Power Query

Yet another vote up for having RegExp capabilities. We need to use it in a switch statement. Its going to be a real pain without this.

Marco's profile image Profile Picture

3d25205f e285-40ca-a270-6885fde54e66 on 06 Jul 2020 00:17:26

RE: Regular Expressions support in Power Query

This is absolutely necessary. In the mean time, for those who actually need a solution and can use Python, I've figured out a workaround: https://gist.github.com/markdomansky/06776213a5abbcedbbd9f148cce4b494

Marco's profile image Profile Picture

1d97b74f 49cf-4d0b-b90e-d93948c478a3 on 06 Jul 2020 00:16:21

RE: Regular Expressions support in Power Query

I can't believe that this isn't part of Power Query :( so sad.

Marco's profile image Profile Picture

9c2e1ca8 d863-4e75-bcab-31d448110041 on 06 Jul 2020 00:14:04

RE: Regular Expressions support in Power Query

Very surprised to discover regexp is not native to Power Query, can't really call this an ETL tool if regexp is not implemented

Marco's profile image Profile Picture

d64d0c6e 97b7-4f46-a0ee-d62540bc4469 on 06 Jul 2020 00:13:11

RE: Regular Expressions support in Power Query

I was considering dropping Alteryx and using M instead but with this limitation, I can't risk it,

Marco's profile image Profile Picture

5c3f11a9 fb3e-4fc9-8b20-939f51e09c34 on 06 Jul 2020 00:12:45

RE: Regular Expressions support in Power Query

This is really sad to limit the language expressiveness like this. This is so simple to add from javascript or CLR. does not make any sense to reduce a data processing tool this way.

BTW: neither R ou web.page are a solution since they don't run native on Power BI Service.

Marco's profile image Profile Picture

9b374c57 c6e7-4566-98fc-f312a2b1d8b1 on 06 Jul 2020 00:12:12

RE: Regular Expressions support in Power Query

Regex are essential part of string manipulation. Should be a must for Power BI!

Marco's profile image Profile Picture

cb19c3bc 827a-4d23-badf-c8c957f88285 on 06 Jul 2020 00:10:16

RE: Regular Expressions support in Power Query

RegEx in Power Query/Power BI should be a MUST for data analysis...

Marco's profile image Profile Picture

04c151b6 c392-415e-a3d0-e46b08ceaaf3 on 06 Jul 2020 00:05:03

RE: Regular Expressions support in Power Query

While there are workarounds adding Regular expressions would be a huge boost to Power Query's functionality.