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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Luddekudde
Frequent Visitor

Day function reading month

Hi, I'm using a DAY function to read the day out of a column with the date in dd/mm/yyyy format.

However when the day is 12 or below the function reads the month instead, as you can see in the picture.

The column [days in between] reads the [ZAPPDATE] with a DAY function, but when the day value equals 12 or lower it instead reads the month value.

Capture Day error.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have my dateformat set to dd/mm/yyyy on my computer so that shouldn't be the problem. Any ideas?

 

Thanks

2 ACCEPTED SOLUTIONS
Phil_Seamark
Microsoft Employee
Microsoft Employee

That does seem odd.  What data time are you using for the [ZAPPDATE] column?

 

And if you are using Date/Time what does your [ZAPPDATE] column show if you set the Format to something a little more verbose?

 

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Thanks! The trick was to change the format outside of the query-editor.

View solution in original post

2 REPLIES 2
Phil_Seamark
Microsoft Employee
Microsoft Employee

That does seem odd.  What data time are you using for the [ZAPPDATE] column?

 

And if you are using Date/Time what does your [ZAPPDATE] column show if you set the Format to something a little more verbose?

 

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thanks! The trick was to change the format outside of the query-editor.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.