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
Anonymous
Not applicable

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?

Anonymous
Not applicable

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

@Anonymous

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

Anonymous
Not applicable

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
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.