Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PiterBI
Regular Visitor

Show all dates on x-axis with custom hierarchy

I added a custom date hierarchy to the x-axis a table. So that I can see the month, day of the month and abbreviation of the day. However as a result the days without any quantity are not shown on the x-axis. See first image. I want a continuous x-axis; to see weekend days eventhough there is no quantity. Is it possible?


The columns are respectivitely text, number and text. Thus, not recognized as date. If I have the x-axis set to a regular date there is an option to select the x-axis type and set it to continuous. This is the case for the second image.

 

PiterBI_0-1710237309045.png

PiterBI_2-1710237453933.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PiterBI ,

If the columns in your table are not recognized as dates, then Power BI may not be able to display a continuous x-axis with all dates. Please try the following methods:

  1. Change the data type of the columns to dates: If the columns in your table represent dates, you can try changing their data type to dates. To do this, select the column in the Fields pane, click on the Modeling tab in the ribbon, and select the Date data type.
  2. Use a date table: If you have a date table in your data model, you can use it to create a continuous x-axis with all dates. To do this, drag the date column from the date table onto the x-axis of your visual. Then, in the Visualizations pane, click on the Format tab and select Continuous for the X-axis type. Creating a simpler and chart-friendly Date table in Power BI - SQLBI

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @PiterBI ,

If the columns in your table are not recognized as dates, then Power BI may not be able to display a continuous x-axis with all dates. Please try the following methods:

  1. Change the data type of the columns to dates: If the columns in your table represent dates, you can try changing their data type to dates. To do this, select the column in the Fields pane, click on the Modeling tab in the ribbon, and select the Date data type.
  2. Use a date table: If you have a date table in your data model, you can use it to create a continuous x-axis with all dates. To do this, drag the date column from the date table onto the x-axis of your visual. Then, in the Visualizations pane, click on the Format tab and select Continuous for the X-axis type. Creating a simpler and chart-friendly Date table in Power BI - SQLBI

Best Regards

I linked a data table in my model, but I used the data column from the original table. I learned that when a one-to-many connection is created, the date hierarchy is removed from the many side. 

So indeed option 2, use the date table was the solution. Thank you.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.