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
Pete230
Helper III
Helper III

compare serveral years with one slicer

Hi there,

 

I'm struggeling with the following:

 

I would like to display monthly data over several (up to 10) years  in a line chart. But I do not want to see them all in line from e.g. Jan. 2013 to Dec. 2019, rather I would like to see them as comparison (so I see only the months Jan. - Dec. on the x-achsis and the to be compared year-lines distinguished by color). So in the end I do have a slicer to compare as many years as I m choosing in the slicer.

 

What I did find is a solution that compares two years via to slicers (https://www.youtube.com/watch?v=QPVSxxoN5sg). I'm hoping that there's a solution to combine more than 2 years with just one slicer.

 

Does anyone know a propper solution to that?

Thanks in advance and regards

 

Pete

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

I think you can add the month name column from your date table to the x-axis and the year column to the legend. also put the year column in the slicer and you should be able to choose as many or as few years as you want.

View solution in original post

2 REPLIES 2
Pete230
Helper III
Helper III

@johnt75that was an easy one, works perfectly, thanks a lot!

johnt75
Super User
Super User

I think you can add the month name column from your date table to the x-axis and the year column to the legend. also put the year column in the slicer and you should be able to choose as many or as few years as you want.

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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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