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

c0c421a8 5b0b-4b10-b5bb-9cc89454313f on 05 Jul 2020 23:46:02

RE: Regular Expressions support in Power Query

Another request here for REGEX support. While a huge amount is possiblewith existing M Code and the excelling Power Query UI, I've encountered a situation where I absolutely need to use REGEX to extract certain patterns from a field.

Marco's profile image Profile Picture

c95fbb10 ffdc-4ad3-b419-4c7910b884a6 on 05 Jul 2020 23:45:23

RE: Regular Expressions support in Power Query

I need to use regex to parse a string representation into a lists of values. Please add this! Quite common to convert unstructured data into data that can be reported on.

~400 votes are here now for regex support!!

Marco's profile image Profile Picture

212a68ab fcd9-44f1-9476-053037d86566 on 05 Jul 2020 23:45:21

RE: Regular Expressions support in Power Query

Nothing has been going on for almost four years, when do you implement RegEx in Power Query, Power BI?
Don't delay !

Marco's profile image Profile Picture

e38fe7df 2e59-4a59-bd82-c31af99c2494 on 05 Jul 2020 23:34:46

RE: Regular Expressions support in Power Query

The lack of built in Regex is a great shortcoming in Power Bi. Fixed in SQL server long time ago, but lacking as soon as one uses Power Bi directly without SQL server as middle man.

Marco's profile image Profile Picture

cc0abf20 7e8c-4164-8e07-09bc054e8fb3 on 05 Jul 2020 23:31:27

RE: Regular Expressions support in Power Query

This is completely necessary !!! I need to replace a column that "contains" certain data (not the complete occurrence) this is so basic!! please implement it ASAP!! this has been here for so long !! 3 years and you can't put it ?!!

Marco's profile image Profile Picture

99d71f7d 6f34-4727-8ab9-c4fda89d6baa on 05 Jul 2020 23:18:52

RE: Regular Expressions support in Power Query

Microsoft please we need RegEx natively in Power Query. The cheapest text editors have it in one form or another, it should be available in your flagship BI product.

Marco's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 05 Jul 2020 23:09:18

RE: Regular Expressions support in Power Query

This is should be helpful compared to other tools (like Dremio or any other open source tools)

Marco's profile image Profile Picture

dc041c35 7819-4850-b08f-544c9b361f94 on 05 Jul 2020 23:05:09

RE: Regular Expressions support in Power Query

Agreed. I will use Python instead of Power Query or M because of this. This is a crucial element to data cleanup and I need this in virtually all of my data files. Very disappointed that M does not support this.

Marco's profile image Profile Picture

0c25ca5e 7011-439b-9a3c-aed4609205f8 on 05 Jul 2020 22:58:59

RE: Regular Expressions support in Power Query

You can use R to pre-filter using regexp but I am tired of workarounds, especially if cumbersome.
Looking at the recent PBI releases, it seems most changes were made on the front-end rather than more functions in the query/filter engine. Too bad. Note that Tableau, Qlik and Sptfire have regexp implemented for quite some time.

Marco's profile image Profile Picture

0c25ca5e 7011-439b-9a3c-aed4609205f8 on 05 Jul 2020 22:58:59

RE: Regular Expressions support in Power Query

You can use R to pre-filter using regexp but I am tired of workarounds, especially if cumbersome.
Looking at the recent PBI releases, it seems most changes were made on the front-end rather than more functions in the query/filter engine. Too bad. Note that Tableau, Qlik and Spotfire have regexp implemented for quite some time.