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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
neeleshbi
New Member

Filter slicer and Bookmarks always on current Month

Hello everyone!

I have built a new report with a monthly slicer/ filter.

Every user can select a specific month to get the values for our sales.

Is there any chance to have a dynamic filter, that is always filtered on the current month?

For now, I am using a bookmark that is updated monthly manually.

 

 

Ps. I asked the same question in a couple of other forums but received no proper reply.

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

Hi, @neeleshbi 

 

According to your description, I think you can create a date table to display all the dates in the current month,new a relationship with main table date, then use it as a date slicer.

Table =
VAR a =
    YEAR ( TODAY () )
VAR b =
    MONTH ( TODAY () )
RETURN
    CALENDAR ( DATE ( a, b, 1 ), EOMONTH ( TODAY (), 0 ) )

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @neeleshbi 

 

According to your description, I think you can create a date table to display all the dates in the current month,new a relationship with main table date, then use it as a date slicer.

Table =
VAR a =
    YEAR ( TODAY () )
VAR b =
    MONTH ( TODAY () )
RETURN
    CALENDAR ( DATE ( a, b, 1 ), EOMONTH ( TODAY (), 0 ) )

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AllisonKennedy
Super User
Super User

@neeleshbi  You can use the relative date slicer and set to in last 1 month, but this can only be done with a date slicer, not a month slicer. 

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.