cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
crln-blue
Helper V
Helper V

Chart: Show Last 12 months

Hello!

I have some charts where I need to show the last current 12 months. Below is the format that should be displayed:

crln-blue_0-1605768134656.png

 

My chart looks like this:

crln-blue_1-1605768160171.png

I have to drill down to get to the month data but it looks like this:

crln-blue_2-1605768211003.png

The previous year's months are gone. I noticed that PowerBI automatically sets it to the year that you prefer. But, what I need is the last 12 months regardless if some of its months are from last year.

 

Any help is appreciated. Thank you!

 

1 ACCEPTED SOLUTION
DataZoe
Microsoft
Microsoft

@crln-blue 

1. Click on your chart

2. Expand the filter pane

3. For your date and choose relative filter type, then set to be only for in the last 12 months.

DataZoe_0-1605768934435.png

 

Respectfully,
DataZoe


See my reports and blog at https://www.datazoepowerbi.com/

View solution in original post

4 REPLIES 4
DataZoe
Microsoft
Microsoft

@crln-blue 

1. Click on your chart

2. Expand the filter pane

3. For your date and choose relative filter type, then set to be only for in the last 12 months.

DataZoe_0-1605768934435.png

 

Respectfully,
DataZoe


See my reports and blog at https://www.datazoepowerbi.com/

Hello @DataZoe ,

I did this. It worked but the drill down must be clicked. Thanks! Will close this thread now.

 

@crln-blue There are a couple options for your date too! 

 

1. You can right-click on your date in the values secton and choose the Date (not hierarchy). If the data is daily, it will do it at that granuality but won't scroll. 

2. You can also create a calculated column to format your date into those monthly buckets.  [Axis Month] = format([Date],"MMM-yy"). You will then find they don't sort properly, so you need to create another come [Axis Month Sort] = format([Date],"yyyyMM"). Then go back to [Axis Month], and in the Column settings choose "Sort by Column" and select the [Axis Month Sort].  Then you can switch out the [Date] with the [Axis Month]. You can always still keep [Date] as a visual filter.

 

DataZoe_0-1605798912163.png

 

DataZoe_1-1605798929703.png

 

 

 

Respectfully,
DataZoe


See my reports and blog at https://www.datazoepowerbi.com/

This is very helpful! Thanks @DataZoe !

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors