Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Heinrich
Post Partisan
Post Partisan

Date field in Direct Query

Hello
I am using CQD for making some reports

The CQD is DirectQuery. Which type is the Date-Field.
I would like to do a slicer and this does not work.
Is it possible to find out which type it is
And how if "text" it can be reformatted locally.
Have a great day
JFM_12

1 ACCEPTED SOLUTION

@Heinrich if my answer has resolved your problem, please accept it as solution. 

How has it worked?

BBF

View solution in original post

3 REPLIES 3
BeaBF
Super User
Super User

@Heinrich Hi!  it could be because the field is formatted as text instead of date or datetime. Power BI slicers require date fields to be properly recognized as date types to function correctly.

1. You can add a calculated column in Power BI that parses the text date into a date type:

Go to the Modeling tab, and choose New Column.

Use a formula to convert the text into a date. Here’s a formula:
ConvertedDate = DATEVALUE('TableName'[DateField])

2. In Power BI Desktop, go to Transform Data to open Power Query.
Find the Date field in the query editor, select it, and then change its data type to Date or DateTime (depending on your needs).
This transformation may work depending on the configuration, but if it’s not allowed in DirectQuery mode, then stick with 1 above.

 

BBF

Hello BeaBF Thank you very much for your answer. Have a great day JFM_12

@Heinrich if my answer has resolved your problem, please accept it as solution. 

How has it worked?

BBF

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors