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
ButtersStotch
Regular Visitor

Date Format Bug (\mmm-yyyy)

Hi guys,

I have a report that uses this "EndOfMonth" field, and I need it to be in MMM-yyyy format. I'm able to use this, and publish the report, happy days.

How it is supposed to be: https://imgur.com/KmyEyYB

After a few days, it becomes like this M12-2020 format, and when you download the published pbix, the format will have a rogue backslash out of nowhere. Sometimes "\MMM-yyyy", sometimes "\M\M\M-yyyy". Has anyone else seen this and found a fix? I have several reports that encounters this bug.

The Bug: https://imgur.com/Oxmq6UG

2 ACCEPTED SOLUTIONS
AllisonKennedy
Super User
Super User

@ButtersStotch  I haven't seen this, but you could try converting it to Text field in Power Query so it's always exactly in format you want. Use Date.ToText() function:

 

Date.ToText([EOMdate], "MMM-yyyy")


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

Anonymous
Not applicable

I can confirm I've seen this several times. It's exhausting. Power BI has several really nice features, and has come on leaps and bounds recently, but bugs like this are beyond annoying - they are huge productivity soaks. The same happens on money fields - have reports formatted sensibly (in most cases for us, with 0DP) and then suddenly the 0DP is lost and they're displayed with up to nine insignificant decimal places. Makes my team look bad for no reason of theirs.

And can we *please* stop accepting workarounds to bugs in Power BI as a 'solution'. It's not a solution. The bug still exists.

Where do I get to vote on this to be fixed? 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

I can confirm I've seen this several times. It's exhausting. Power BI has several really nice features, and has come on leaps and bounds recently, but bugs like this are beyond annoying - they are huge productivity soaks. The same happens on money fields - have reports formatted sensibly (in most cases for us, with 0DP) and then suddenly the 0DP is lost and they're displayed with up to nine insignificant decimal places. Makes my team look bad for no reason of theirs.

And can we *please* stop accepting workarounds to bugs in Power BI as a 'solution'. It's not a solution. The bug still exists.

Where do I get to vote on this to be fixed? 

I was actually surprised that this seems to happen to only a few users. I haven't seen similar bugs like this reported. Also that currency thing. It's so annoying that I need to adjust the decimal places EVERYTIME I select "$" as the format. Why would I ever need 9 decimal places on a currency column?

ButtersStotch
Regular Visitor

Thanks, @AllisonKennedy , I suppose that could work. I just think it's odd that a published report could change on its own, on a very specific way.

You're welcome @ButtersStotch , dates and even TRUE/FALSE often change in the Power BI service. I guess it's due to updates from Microsoft and in this case possibly regional settings. Text fields are concrete, as they don't rely on custom formatting, so will never change. Unfortunately takes up a bit of space in the model, but that's what a Date table is for. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

AllisonKennedy
Super User
Super User

@ButtersStotch  I haven't seen this, but you could try converting it to Text field in Power Query so it's always exactly in format you want. Use Date.ToText() function:

 

Date.ToText([EOMdate], "MMM-yyyy")


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.

Top Solution Authors
Top Kudoed Authors