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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

range of x-axis of a line chart using a date 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 and 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 date on the date slicer.

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

if 1st sept 2018 is selected the date range on the chart reflects 13 months prior till september 2018 .

How do i achieve this .

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

Check if this post helps you achieve the final result.

 

https://www.justanalytics.com/blog/technical-know-how/how-to-display-last-n-months-data-in-power-bi

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @Anonymous ,

 

Check if this post helps you achieve the final result.

 

https://www.justanalytics.com/blog/technical-know-how/how-to-display-last-n-months-data-in-power-bi

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

The below post was able to address my question    https://sql.bi/704248?aff=yt    and https://www.youtube.com/watch?v=d8Rm7dwM6gc 

 

Thanks for the response @MFelix 

Helpful resources

Announcements
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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.