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
kotelo
Frequent Visitor

Show last 12 months (no relative dates visual level filter)

Hi people, I have a little issue trying to display some data, I hope you can help me with this.

The thing is I have a line chart with sales by period (nov-2018, dec-2018, jan-2019 and so on) but now I want to display only the last 12 periods based in date selections.

For example, if I pick in my year filter "2018" and in my month filter "October", the line chart should display sales from nov-2017 to oct-2018, and with no selections it should display sep-2018 to aug-2019 (as of today).

That's why a relative dates visual filter isn't of much help, because if I change years, the graph will not follow the applied filters.

 

That would be it. I hope I was able to explain myself as clearly as posible.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may refer to my solution here - Flex a Pivot Table to show data for x months ended a certain user defined month.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You may refer to my solution here - Flex a Pivot Table to show data for x months ended a certain user defined month.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

It works! Thanks!

But what's the logic behind having two Calendar tables in the data model?

You are welcome.  One to show within the Pivot Table and the other to use in a slicer.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.