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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
dkbr
Regular Visitor

Previous year 6 months and current year month data.

Hi Experts !

Need your help. Indian financial year starts from Apr and end on March. From April_2023 new financial year has started. So what i want, when i will select financial year 2023-2024 & Month April in a Slicer then it should display
the data for previous year's 6 months i.e. October 2022-23 to current year's Month i.e. April_2023.There will be total 7 months data. Same should be apply for all the next months also,
means when i will select May then data should be display data from November 2022-23 to May 2023-24. In short it should apply all the next months also. This Slicer should filter all the visuals on my power bi desktop.
Please provide the solution. Hope you understand the problem. If i missed something pls let me know.

Thanks!!

2 REPLIES 2
amitchandak
Super User
Super User

@dkbr ,when you select one date and want to show data more than that. You need to have a slicer on an independent date table 

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = eomonth(_max, -6) +1
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))

 

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak, sorry for delay reply. I saw your video & that's great. But it will work for that specific visual only. I need a slicer for N months (same as which is in your video) and it should filter all the visuals on a page ( there are total 13 visuals on my page). Can you pls provide furthermore solution? Thanks!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.