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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
crln-blue
Post Patron
Post Patron

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
Employee
Employee

@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,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

View solution in original post

4 REPLIES 4
DataZoe
Employee
Employee

@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,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
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,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

This is very helpful! Thanks @DataZoe !

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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