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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Luddekudde
Advocate I
Advocate I

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors
Top Kudoed Authors