Validating data using regex in Power BI
To date, Power BI has no native feature in Power Query to perform operations via regexes. There are cases when you can't avoid using regexes to extract useful information from data in text form. The only way to be able to use regexes is through R scripts or Python scripts. The only cons you have in this case is that, if you need to publish the report on the Power BI service, to allow Power Query to use external R or Python engines, you must also install the on-premises data gateway in personal mode.However, let's get right into it with real-world examples.Let's say you work for a retail company that has a team dedicated to identifying fraudulent customers. As soon as a team member identifies a fraudster, they fill out an Excel spreadsheet, in which the Email and BannedDate columns are included along with others. Your task is to load the data from this Excel file into Power BI and, from other data sources, select only the fraudster...