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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.