The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have two slicers, Month and Week. The Week slicer filters the Month slicer, so whenever I choose a week, it filters to that corresponding month.
There's my question, is there a way when I choose a week, the Month slicer automatically selects the correct month instead of choosing the preselected month?
I want it to automatically select April when I choose a week in April like this.
But right now it requires me to manually select the Appropriate month.
Please if anyone could provide some help.
Hi @jiayuli ,
Try below calendar table:
Date =
ADDCOLUMNS (
CALENDAR ( DATE ( 2023, 01, 01 ), DATE ( 2024, 12, 31 ) ),
"Year", YEAR ( [Date] ),
"Quarter", ROUNDUP ( MONTH ( [Date] ) / 3, 0 ),
"Month", FORMAT(MONTH([Date]),"mmmm"),
"Week", WEEKNUM ( [Date] ),
"Year-Qur",
YEAR ( [Date] ) & "Q"
& ROUNDUP ( MONTH ( [Date] ) / 3, 0 ),
"Year-Mon",
YEAR ( [Date] ) * 100
+ MONTH ( [Date] ),
"Year-Week",
YEAR ( [Date] ) * 100
+ WEEKNUM ( [Date], 2 ),
"Weekday", WEEKDAY ( [Date], 2 )
)
When the date slicer is selected, the month slicer will automatically become the corresponding month.
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for the answer. However, is there a way for the Month slicer to automatically select when it changes?