Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello! I am new to Power Query and need some help with a slicer.
I have a DateDim set up using this code (thank you @dkay84_PowerBI ) with a few amendments, as my week starts on a Sunday and ends on a Saturday. I am using the FY week number and FY columns as slicers to display the current financial year and week, but have to manually select the new week on Monday.
Note : the financial year is the 1st March, but reporting starts on the Saturday before, i.e. for this year the start of the new financial year is the 28th Feb
I have looked through various threads and tried to add a current week column with no luck 😞 and have added a calculated column as an alternative with the following formula:
=IF(Today()=[Date],DateDim[FYWeekNum])
Is there a way to add a calculated column that will automatically amend the slicer to select the new week on a Sunday?
Any help would be most appreciated.
Solved! Go to Solution.
Hi @NitaT ,
Currently, we are not able to set default value as you describe and disable the ability for user to cancel choice in slicers.
Although this isn’t natively supported as of yet, we can imitate this functionality with a little bit of DAX! A general overview of the process to accomplish this task is as follows:
Reference: Setting a Default Slicer Selection
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @NitaT ,
Currently, we are not able to set default value as you describe and disable the ability for user to cancel choice in slicers.
Although this isn’t natively supported as of yet, we can imitate this functionality with a little bit of DAX! A general overview of the process to accomplish this task is as follows:
Reference: Setting a Default Slicer Selection
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @NitaT ,
Sorry, not very clear. What do you want to make the current week? Can you display a expected result?
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-stephen-msft ,
Sorry my query was not very clear...let me try again:
I am using a financial year and weeknumber slicer, to filter the pivot table by the days of the week. The reporting week is Sunday to Saturday. In the example below the dates displayed are for fiscal week 10, on Monday week 11 will be added to the "Select Week Number" slicer as the data for Sunday will be available. Currently, on Monday, I will need to manually select week 11, to display the sales data for the new week.
What I would like is for the slicer to automatically select week 11 when the day changes to Sunday.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
19 | |
19 | |
10 | |
9 | |
9 |