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
Anonymous
Not applicable

How to display last N months using Year Number slicer?

For example, If I click on 2017 year slicer, it has to show the previous N months data

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@swathijalakam28, see this -https://www.youtube.com/watch?v=duMSovyosXE

This for a date, but in the table create Year and use the year segmentation that will work

View solution in original post

v-diye-msft
Community Support
Community Support

Hello @swathijalakam28

Please let me know if you want to get the following results:

002.PNG

Pbix joined.

Community Support Team _ Dina Ye
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

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

See if my solution here helps - Flex a Pivot Table to show data for x months ended a certain user defined month.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-diye-msft
Community Support
Community Support

Hello @swathijalakam28

Please let me know if you want to get the following results:

002.PNG

Pbix joined.

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

Thanks a lot! It served me, it was just what I was looking for.

harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You can Refer to this video

 

https://www.youtube.com/watch?v=0enQCIWCSUE

Last N Weeks Comparisons (DAX Tutorial) (Last 3 weeks, Last 8 weeks,... Last N weeks)

 

Regards,

Harsh Nathani

Fowmy
Super User
Super User

@Anonymous 

Can you share some sample data and the expected result to have a clear understanding of your question?
You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.
____________________________________
How to paste sample data with your question?
How to get your questions answered quickly?

_____________________________________
Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@swathijalakam28, see this -https://www.youtube.com/watch?v=duMSovyosXE

This for a date, but in the table create Year and use the year segmentation that will work

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.