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.
Hi,
I've got a Text field and want to extract a Date from it. My text field has blank values or Date in format "DD/MM/YYYY" or even time like "DD/MM/YYYY Time". I want to extract the date form it in the format DD/MM/YY.
I tried this formula
```
Solved! Go to Solution.
Hi @tamerj1
It shows an error that 'Cannot convert type '' Text to Date type'.
But I was able to solve the problem by using the formula:
------------------------------------
Legend = IF (Database[Date Text column]<>BLANK(), IFERROR(DATE(YEAR(Database[Date Text column]),MONTH(Database[Date Text column]),DAY(Database[Date Text column])),BLANK()),BLANK()) //Converting Text field to Date
-----------------------------------------
and then converting the Data Type to 'Date' in Column Tools tab.
Thanks a lot for your help! I really appreciate it!
Hi @Anonymous
you can try DATEVALUE function:
DATEVALUE ( Database[Date Text column] )
Hi @tamerj1
It shows an error that 'Cannot convert type '' Text to Date type'.
But I was able to solve the problem by using the formula:
------------------------------------
Legend = IF (Database[Date Text column]<>BLANK(), IFERROR(DATE(YEAR(Database[Date Text column]),MONTH(Database[Date Text column]),DAY(Database[Date Text column])),BLANK()),BLANK()) //Converting Text field to Date
-----------------------------------------
and then converting the Data Type to 'Date' in Column Tools tab.
Thanks a lot for your help! I really appreciate it!
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 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |