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
basirve
Helper III
Helper III

How to fetch past 6 months data based on MMM-YYYY (Sep- 2020) Slicer selected value

Hi Experts,

If i choose service period as Jul -2020 then would like to show in the last 6 months data in  matrix visuals

Note: latst 6 months( jul -20,jun-20,May-20,Apr -20,Mar-20 and Feb-20) 

how can achive this solution Please guide your thoughts.  

image.png

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @basirve 

You can check if the solution in this similar thread is useful.

https://community.powerbi.com/t5/Desktop/Values-till-the-selected-month/m-p/1023055

If it dosn't meet your requirement, please share  a sample file  and show you expected result.

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi , @basirve 

You can check if the solution in this similar thread is useful.

https://community.powerbi.com/t5/Desktop/Values-till-the-selected-month/m-p/1023055

If it dosn't meet your requirement, please share  a sample file  and show you expected result.

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@basirve , You can try a measure like , Make sure month is coming from date table

 

new Measure =
var _max = maxx(allselected(Date), Date[Date])
var _min = eomonth(_max,-7)+1

return
calculate([Measure], filter(all(Date), Date[Date] <=_max && Date[Date] >= _min))

 

This might group all month in one month. If you want to show trend then check this -https://www.youtube.com/watch?v=duMSovyosXE

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.