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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

changing range of x-axis of a line chart using a date range slicer

Hi All,

 

I have a master calendar table with Date,Year, Month, YearMonthShortName and more and a fact table with data from Year 2013 till Year 2018 

 

I have a date range slicer

I have a trend line chart of sales measure from fact table.

 

The requirements is as below

 Create a chart such that the date range on the chart changes with the selected range on the date slicer. 

if 2nd of jan 2013 to 1st sept 2014 is selected the date range on the chart reflects same.

if 1st  of jan 2013 to 3rd of jan 2013 is selected date range on the chart reflects same.

 

 

The date range of the xaxis will show weeks if the date range selected is less than a month,

The date range of the xaxis will show months  if the date range selected is less than 12 months or more than 12 months 

How do i achieve this .

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I doubt as of now you can change axis based on the selected range like time.

 

You can pass control in had of end-user to choose using field parameters https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks for the quick response.  

amitchandak
Super User
Super User

@Anonymous , I doubt as of now you can change axis based on the selected range like time.

 

You can pass control in had of end-user to choose using field parameters https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

@amitchandak  what about if i want the date x axis  to show 13months backwards of any date selected on the date slier. how do i achieve this.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.