cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Spagh Occasional Visitor
Occasional Visitor

How do I have multiple date formats on an X axis?

 

Hi,

 

I'm attempting to mimic a graph I modeled in Excel by using a column that had multiple date formats. Some dates were in "Mmm YYYY" format and others were in MM/DD/YYYY format. This purpose was to show weekly data, and then as the months passed it would convert the weekly data to show as monthly (see snapshot of graph below for clarification).

 

Capture.PNG

 

I assumed that if the field was set to "text" it would automatically read the column for its values like the above Excel graph does, but instead PBI immediately converted al data in this column to MM/DD/YYYY.

 

My question is this: How can I have multiple date formats on my x axis? OR how do I get PBI to read the values of the column without converting it to a date format like Excel does?

 

Thanks for your help!

 

 

4 REPLIES 4
Super User
Super User

Re: How do I have multiple date formats on an X axis?

Hi,

 

You cannot have multiple date formats on the X-axis.

affan Established Member
Established Member

Re: How do I have multiple date formats on an X axis?

Hi @Spagh

 

Can you share some sample data?

Highlighted
v-yulgu-msft Super Contributor
Super Contributor

Re: How do I have multiple date formats on an X axis?

Hi @Spagh,

 

It is not possible to show dates in multiple date formats on X-axis. To show dates like above image, you could set the data type of date field to "Text" after importing into desktop.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Jessica_Seiya Established Member
Established Member

Re: How do I have multiple date formats on an X axis?

You can open Power Query Editor, find the column and then change the type to Text.

2018-11-22_15-23-15.png

 

 

 

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 121 members 1,499 guests
Please welcome our newest community members: