cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stuross
Frequent Visitor

Line chart view data by year and month

I am trying to view my date by year and month.  Issue arises when I filter on more than a single year, I still only see 12 months on my plot and it appears that it is aggregating the data from each month over both years.  What I would like to see below the axis is for 2016 all the months data values then right bedisde it 2017 and the months with data vlaues.  I think I am missing some very obvious as this is a pretty standard way of pltotting time data.  Any help would be appreciated.

 

Thanks

 

 Years.pngyears plot.png

 

1 ACCEPTED SOLUTION
SqlJason
Memorable Member
Memorable Member

To do that, you can create a new calculated column in your date table (if it is already not there) which is the concatenation of your year and month. Then, if you place that in the axis, you will get 36 months when you select 3 months. This type of chart helps us in seeing a long term trend.

 

If your aim is to compare months of each each year, you can place Year on the legend and then you will see 3 lines. This type of chart compares how we are doing every month compared to the previos years.

 

 

View solution in original post

2 REPLIES 2
SqlJason
Memorable Member
Memorable Member

To do that, you can create a new calculated column in your date table (if it is already not there) which is the concatenation of your year and month. Then, if you place that in the axis, you will get 36 months when you select 3 months. This type of chart helps us in seeing a long term trend.

 

If your aim is to compare months of each each year, you can place Year on the legend and then you will see 3 lines. This type of chart compares how we are doing every month compared to the previos years.

 

 

Perfect!  Thank-you!

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors