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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Month() and Day() Functions Replacing values!

Hey everybody.

 

I've created a function to count days between two different measures.

 

I have a measure - Today_Updater - showing the last date in my datedim table.

 

All of the dates are in "DD/MM/YYYY" format.

 

I've noticed that in the current month, Day() and Month() function for some unknown reason between the 8th of July and the 12th of July Day() gives the month and Month() gives back the day...

 

I am super frustrated... my region is set, all date formats are good... but still...   attached below are the screenshots:

 

On the 7th all is good

1.PNG

Between the 8th to the 12th for some reason, the Day() gets the month's number and Month() the day's number

2.PNG

 

3.PNG

On the 13th, it is back to normal. I really cannot understand why.

It happens every single year, between the 8th and the 12th.

4.PNG

 

Please help me solve this problem, I have zero clues about how to solve this.

 

Thanks a lot!

1 REPLY 1
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

The date show the format of MM/DD/YYYY by default in Power BI. You can change the option to DD-MMM-YY. 

11.PNG1.PNG

Best Regards,

Xue Ding 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors