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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.