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.

Highlighted
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?

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
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

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

Users Online
Currently online: 493 members 3,923 guests
Please welcome our newest community members: