Join 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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
I'm wondering what went wrong with "date.fromtext".
https://msdn.microsoft.com/en-us/query-bi/m/date-fromtext
I tried it in Excel 2016 and PowerBI Desktop April update
On my end, I tried,
Date.FromText("2010-02-19") equals Date,yyyy-MM-ddand
Date.FromText("2010-02-19") equals Date,yyyy-MM-dd
and both showed "Token Eof expected" and the error is on 'equals'
Will anyone be able to advice what went wrong?
Many Thanks
Solved! Go to Solution.
Hi Rookarumba,
Date.From("2010-02-19") is a function, "Date.FromText("2010-02-19") equals Date,yyyy-MM-dd" from MSDN is description which explain that you can achieve a date type result when use Date.From() function.
Regards,
Jimmy Tao
Hi Rookarumba,
Date.From("2010-02-19") is a function, "Date.FromText("2010-02-19") equals Date,yyyy-MM-dd" from MSDN is description which explain that you can achieve a date type result when use Date.From() function.
Regards,
Jimmy Tao
Thanks, that work 🙂
I think date.FromText doesn't work in power bi, try below:-
Column = Format("2010-02-19","Short Date")
https://msdn.microsoft.com/en-us/query-bi/dax/format-function-dax
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 59 | |
| 42 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 108 | |
| 100 | |
| 39 | |
| 29 | |
| 29 |