This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi, I'm using DirectQuery mode for my report. I have date fields which are of the data type Text.
I tried converting it into Date by changing the Data Type from Text to Date. It says "This step results in a query that is not supported in DirectQuery mode." I get the same error when I try to add a custom column (Month = Date.FromText([DateField])).
How do I get the month number, month name, and year from the text field? How do I convert the text field into a date field in DirectQuery mode? The existing solutions do not seem to work in DirectQuery mode.
Please help! Thanks.
Solved! Go to Solution.
@Anonymous ,
While connecting to direct query mode you can use native query editor to transform your columns.
CONVERT(datetime, YourDatecolumn)
Don't forgrt to hit THUMBS UP and Accept this as a solution if it helps you!
@Anonymous ,
While connecting to direct query mode you can use native query editor to transform your columns.
CONVERT(datetime, YourDatecolumn)
Don't forgrt to hit THUMBS UP and Accept this as a solution if it helps you!
@Tahreem24Thank you!
For others having the same issue,
Use the following SQL command while getting data for your report:
SELECT CONVERT(date, [DateSubmitted]) as [DateSubmitted]
,DATEPART("MONTH", [DateSubmitted]) as [Month]
,DATEPART("YEAR", [DateSubmitted]) as [Year]
,(DATEPART("WEEK", [DateSubmitted]) as [Week]
,'Q' + CAST(DATEPART("QUARTER", [DateSubmitted]) as varchar) as [Quarter]
FROM..
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 41 | |
| 40 | |
| 36 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 72 | |
| 59 | |
| 34 | |
| 27 | |
| 25 |