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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Omar_Servin
New Member

Problem extracting date from datetime field using DAX

When I try to extract the date of a datetime field Tasks[Created Date].[Date] I receive the error

Column reference to 'Created Date' in table 'Tasks' cannot be used with a variation 'Date' because it does not have any.

 

I am sure this is a Date/time field, my dataset has other Date/time fields and the .[Date] part works perfectly on all of them, except for this one. Is this a bug? Do I have to reload the data?

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Omar_Servin 

Please check the points:

1.If there is a relationship at the field, if it has the relationship of the field e,g one-many, and the field is the (many) field ,  it cannot extract the date.

2.Please make sure the 'Auto date/time for new file' is open on desktop. if the option is not open, it cannot extract the date.

vxinruzhumsft_0-1694496568771.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Omar_Servin 

Please check the points:

1.If there is a relationship at the field, if it has the relationship of the field e,g one-many, and the field is the (many) field ,  it cannot extract the date.

2.Please make sure the 'Auto date/time for new file' is open on desktop. if the option is not open, it cannot extract the date.

vxinruzhumsft_0-1694496568771.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

beckemeyer
Regular Visitor

using %.[Date] is for datetime fields. I don't have a lot to go off of, but it looks like you are already coding [Created Date] as a date field and not a datetime field. It's certainly not a bug, but I have found that working with Created Date in Dataverse is somewhat more tricky and sometimes I have to make a calculated column that extracts the date from the Created Date column.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.