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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.