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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
lguima
Frequent Visitor

Dynamic Sorting Chart Line

I have a scenario where I have a date slicer and a line chart that compares the sales for next 12 months and previous 12 months from the select date in slicer, everything is working fine, as you can see in following example that @AllisonKennedy  kindly helped me at: Date Categorical Slicer 

 

lguima_0-1629734794406.png

The problem is that I want to change the sorting from x-axis of this line chart to begin from selected date in Date Slicer.

 

Example: When the user choose 6 november 2019 at slicer, the x-axis should start on november, december, january, february, etc...

 

Any ideas of how could I do that? If someone needs more information just let me know!

Thanks!

 

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Can changing the x-axis to the drilling form of month and year meet your needs?

Vlianlmsft_0-1629869302834.pngVlianlmsft_1-1629869322862.png

 

amitchandak
Super User
Super User

@lguima , if you select 1 date or month and you want more than that. Then you need more than that. You need an independent date table

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak Thanks for your answer!

 

I watched your video and I'm not sure if it's related to my problem.

 

I'm sending a .pibx example, there you can see that I choose a Event on a Slicer, but the initial X-axis at line chart doesn't start from the beggining date of the event.

 

I customized a small .pbix file with a example, I'm not sure how to attach a file in this forum so I'm sending the URL with the file:

 

Customized Sorting X-Axis 

 

Thanks again!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.