Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Date axis to show all values but only within relevant range of dates


Is there a way to have the date axis in line or bar chart show all dates between min([date]) and max([date]) of filtered subset but not dates on the either side of this range?


What I did here:
1. Put a date column from date table covering 2020-01-01 to 2021-12-31 on x axis

2. Ticked 'show items with no data' 

3. Using a slicer based on an entirely different column, selected rows with date values within a two small ranges in the middle of this larger period.

The visual is showing the entire two-year date axis anyway, most of it with no data. This might be acceptable when aggregated to months but makes it quite useless when I drill down to days (I have to to scroll sideways to find the relatively small range occupied by factual data).

Super User
Super User

@bamber One way would be to change the x axis to use the fact date rather than the calendar date.  That is not a good way.

Another way is to use zoom sliders.

Frequent Visitor

Hi @lbendlin ,

thanks for the reply. I thought about zoom sliders but wouldn't it leave the user with the same problem: how to find the narrow date range with actual data on an axis that covers two whole years?


Find a test user, let them try it, and then decide.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors