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

Showing both text and dates on X-Axis

The problem I'm experiencing with showing dates and text on the X-axis is that it will not read correctly in Power BI. 

 

Power BI turns this:

TWilliams3_0-1612361950271.png

 

into this:

TWilliams3_1-1612361977932.png

 

Is there a way to fix this?

10 REPLIES 10
VijayP
Super User
Super User

@TWilliams3 

you need to select Format Group where you will find the format option

VijayP_0-1612364231630.png

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


MFelix
Super User
Super User

Hi @TWilliams3 ,

 

To what I can see you have an Average montlhy value on the middle of your dates have you tried to change the chart in to a Bar / Line chart where you place the dates has axis and the average value on the lines?

 

Seems much more intuitive than to mix all the data in the Axis.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hey Miguel,

 

Changed my chart to line and bar chart, but the dates still aren't reading in the correct order. the dates are formatted as text so that Power BI won't try to cover the gaps of the days I filtered out of my data set. I also seen this trick to add a MonthNum to the data set and sort from that, but that isn't working as well. Any advice?

TWilliams3_0-1612449984246.png

 

HI @TWilliams3 ,

 

You need to format the dates has dates, and then change the axis to categorical and select the option show values wihtout data, that allows for the dates to be continuous and show the gaps.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



I do not want the gaps to be shown, should I still do what you detailed above?

If you don't want the gaps you should have you dates has dates, choose the categorical view and that will hide the gaps.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Miguel, I dont have that chart option and I cannot find it when I search for it in the Power BI Visuals

 

HI @TWilliams3 ,

 

I'm refering to using a Line and clustered column chart:

 

MFelix_0-1612366234264.pngMFelix_1-1612366356545.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



VijayP
Super User
Super User

@TWilliams3 

You need to change the Format of the Field . Select the Field in the Fields Pane and Change the Format to proper Date , then this will be sorted out




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hi Vijay,

 

I'm not seeing that option in the fields pane.

TWilliams3_0-1612363832210.png

 

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.