cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dataguy
Helper III
Helper III

How To Have Custom Formatted Date with Date Data Type

When I create a calculated column as:

 

Month Abbreviation Day = Format('Date'[Calendar Date],"MMM dd")  it has a data type of Text.   If I change the data type to Date then I lose the formatting.

 

How can I make a true date column with the "MMM dd" format?

 

Thanks.

4 REPLIES 4
Sean
Community Champion
Community Champion

Yes FORMAT converts value into text

 

I didn't see your requested MMM DD Format in the Modeling tab - the closest one I saw was MMMM D

but I suspect you don't want the whole month name.

 

Date Format.png

 

EDIT: What problem do you encounter when the values are converted into text?

Sean, 

 

Thanks for the response.

 

I need the labels to be as small as possible since I am trying to display a rolling 30-day X-Axis.   If I make them text, then the Continuous X-Axis doesn't work and the users want that since that is what they had it Excel.   Always an adventure trying go provide the same functionality.   It would be really nice if a custom format could be used instead of just the ones in the drop down.

Sean
Community Champion
Community Champion

@dataguy

Have you tried selecting the Show Items with no data - when placing the Formatted as text column in the Axis

 

Show Items with no Data2.png

Great idea!   I gave it a try and the X-Axis displays correctly but I can't change the X-Axis from Categorical to Continuous.

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors