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
jkmajcen
Frequent Visitor

Dynamically change X axis interval from day to month to year based on date range.

Google Analytics has very user friendly feature where if you are looking a bar chart for instance with a date range selection of less than 2 months or so days then the bar chart will group the data by day. If viewing a date range of 2+ months worth of data then the bar chart automatically shows data grouped by month. If you date range was multiple years than you'd get data grouped by year automatically when that grouping made sense. Showing day level granularity over many years would not make sense.

 

Does this functionality exist in Power BI out of the box or is this something you have to roll yourself? If you must roll your own, whats the best way to do this?

 

Thanks.

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @jkmajcen 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
jkmajcen
Frequent Visitor

Thanks for the input and links everyone.

amitchandak
Super User
Super User

parry2k
Super User
Super User

@jkmajcen there is nothing like that in Power BI except if you are looking at date level and your x-axis is categorical, it will show points for months and in case of continuous it will show all the dates, that's pretty much it but it gives you the flexibility to drill up and down, like Year -> Quarter -> Month -> Week -> Date, and you can make the hierarchy whatever the way you want.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors