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

X-Axis date labels adding time

Hi,

 

I have a area chart showing transactions by day. Generally all is fine but if by using a slicer the chart is reduced down to show only a few days then the chart decides to add extra labels on the X-Axis inbetween dates (as there is now space). See this example.

 

tot.jpg

 

In this chart there are only five data points, one for each day.

 

The date column I'm using on the X-Axis is set to format (via Modelling -> Format) to dd/MM/yyyy. The underlying date dimension is constructed via DAX using code available here.

 

The axis is set to continuous, when I change it to categorical this issue goes away and I get one label per day but as you can see I have a trend line showing on the chart and I can only show that when it is set to continuous.

 

So how do I remove the time element to the X-Axis labels?

 

1 REPLY 1
Anonymous
Not applicable

It appears this is a duplicate of this post from July 2017. As stated there isn't a way to format or change the values of the axis whilst in continuous mode.

 

This is the closest request I can find on the Power BI Ideas pages.

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.

Top Solution Authors