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

Slicer for Moving Annual Total - Timeline Chart

Hi,

I have problems with the visualization of mobile years in a timeline, so I think there should be a graphic or official Microsoft slicer able to visualize MAT (Moving Annual Total), that is to say, that does not show all the year, only the last 12 months: from June 2017 to June 2018, without needing to see from January to May of 2017.
Or will there be a way to show the mobile years?

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-qiuyu-msft
Moderator

Re: Slicer for Moving Annual Total - Timeline Chart

Hi @FaustoMoya,

 

You can create a calculated to decide whether the date is in the last 12 months: 

 

Last12Months = IF(DATEDIFF('Table'[Date],MAX('Table'[Date]),MONTH)<12,"last 12 months","")

 

Then drag this new column to the visual/Page level filter pane, select the value "last 12 months", the visual will only show data in last 12 months. 

 

You can refer to this similar blog: https://blogs.msdn.microsoft.com/lukaszp/2015/08/08/finding-the-latest-date-in-power-bi-desktop/

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Moderator v-qiuyu-msft
Moderator

Re: Slicer for Moving Annual Total - Timeline Chart

Hi @FaustoMoya,

 

You can create a calculated to decide whether the date is in the last 12 months: 

 

Last12Months = IF(DATEDIFF('Table'[Date],MAX('Table'[Date]),MONTH)<12,"last 12 months","")

 

Then drag this new column to the visual/Page level filter pane, select the value "last 12 months", the visual will only show data in last 12 months. 

 

You can refer to this similar blog: https://blogs.msdn.microsoft.com/lukaszp/2015/08/08/finding-the-latest-date-in-power-bi-desktop/

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
FaustoMoya Frequent Visitor
Frequent Visitor

Re: Slicer for Moving Annual Total - Timeline Chart

Hi Qiuyun Yu, it was the solution

I was stuck trying to create it in new measure, when I later realized that it was by new column.

Thanks a lot

Fausto Moya

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 121 members 1,293 guests
Please welcome our newest community members: