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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
stribor45
Post Prodigy
Post Prodigy

DATE error

Can someone suggest as to what I am doing wrong when creating calculated column? I am adding this formula 

 

= DATE(2023,1,1)  

 

but I am receiving this error.

 

stribor45_0-1681747385850.png

 

 

1 ACCEPTED SOLUTION

The link you had is DAX expression syntax.

 

whay you are trying to do is in M Query, which the syntax is

https://learn.microsoft.com/en-us/powerquery-m/sharpdate

 

Hope this clarifies!

View solution in original post

3 REPLIES 3
latimeria
Solution Specialist
Solution Specialist

Hi @stribor45 ,

 

Missing # and lower cases

 

 

#date(2023,1,1)

 

 

that worked but I don't think that was mentioned Date . Why do you need  #?

The link you had is DAX expression syntax.

 

whay you are trying to do is in M Query, which the syntax is

https://learn.microsoft.com/en-us/powerquery-m/sharpdate

 

Hope this clarifies!

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.