Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am having an issue with the DAX formula for separating the dates and removing the text. I have a column A which has dates as well as text. I need to keep only dates and remove the text. If I use this formula = Table.AddColumn(Source, "Date", each if [RequestCompletionDate] = "1/22/2020" then [RequestCompletionDate] else "") then it works for the specific date but not sure what to do extract all dates. Below is a sample example of my data.
A |
Complete |
HUB234 |
01/22/2020 |
xyzxkaed |
05/08/2021 |
Any help is appreciated.
I got my answer. This is what I used to extract my dates from a column
Using Power Query to Extract Dates from Text String - YouTube
First, this is not DAX but M, the language of Power Query. Second, you can use a function that casts a string into a date and then filter out the rows where this casting returns an error. Look for a function like Date.FromText... or something similar.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
6 |