Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 8 | |
| 7 |