Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |