Fabric is Generally Available. Browse Fabric Presentations. Work
towards your Fabric certification with the Cloud Skills Challenge.
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.
Go to Solution.
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.
VAR a =
YEAR ( TODAY () )
VAR b =
MONTH ( TODAY () )
CALENDAR ( DATE ( a, b, 1 ), EOMONTH ( TODAY (), 0 ) )
If it doesn’t solve your problem, please feel free to ask me.
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
@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.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table namesHas 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
Check out the November 2023 Power BI update to learn about new features.
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.