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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
pavithra_viki
New Member

create single dropdown with thisWeek, thisMonth, thisYear and date slicer based on the selection.

i want to creata a dropdown slicer with values "wEEK, Month, Year, custom" as shown in the image below :
Consider this is FilterA

pavithra_viki_0-1723148008645.png
And another slicer with date :
Consider this is FilterB

pavithra_viki_1-1723148082453.png




Case :

If i select "Month" from filterA, then automatically in filterB should display current month dates i.e.,, froom 1-Aug-2024 to 31-Aug-2024. 
Likewise, If i select "Week" from filterA, then automatically in filterB should display current month dates i.e.,, froom 4-Aug-2024 to 10-Aug-2024. 
Likewise, If i select "Year" from filterA, then automatically in filterB should display current year dates i.e.,, froom 1-Jan-2024 to 31-Dec-2024. 

*** Important **** 
Likewise, If i select "Custom" from filterA, then automatically in filterB should display  all the dates from the date table in the database.


Kindly help me in solving this. 




 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @pavithra_viki ,

 

I agree with lbendlin's reply. As far as I know, Power BI doesn't support us to achieve this in between type slicer.

Sometimes we will try to add a measure into visual level filter to filter visual dynamicly with an unrelated slicer.

Here is my sample.

Measure = 
IF(ISFILTERED('Table'[Selection]),
SWITCH(
    MAX('Table'[Selection]),
    "Week",IF(MAX('Calendar'[WeekStart]) = TODAY()-WEEKDAY(TODAY(),1)+1,1,0),
    "Month",IF(MAX('Calendar'[Year])*100+MAX('Calendar'[Month]) = YEAR(TODAY())*100+MONTH(TODAY()),1,0),
    "Year",IF(MAX('Calendar'[Year]) = YEAR(TODAY()),1,0),
    "Custom",1),0)

Add this measure into visual level filter and set it to show items when value = 1.

vrzhoumsft_0-1723454738620.png

We can see that it could work in list or drop type slicer, and wouldn't work in between type slicer.

Here I suggest you to try Relative Date function in this slicer.

in this week:

vrzhoumsft_1-1723454823591.png

in this month:

vrzhoumsft_2-1723454868441.png

in this year:

vrzhoumsft_3-1723454881084.png

Custom = remove all filters to show all data.

 

Best Regards,
Rico Zhou

 

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

5 REPLIES 5
pavithra_viki
New Member

its a client need

Anonymous
Not applicable

Hi @pavithra_viki ,

 

I agree with lbendlin's reply. As far as I know, Power BI doesn't support us to achieve this in between type slicer.

Sometimes we will try to add a measure into visual level filter to filter visual dynamicly with an unrelated slicer.

Here is my sample.

Measure = 
IF(ISFILTERED('Table'[Selection]),
SWITCH(
    MAX('Table'[Selection]),
    "Week",IF(MAX('Calendar'[WeekStart]) = TODAY()-WEEKDAY(TODAY(),1)+1,1,0),
    "Month",IF(MAX('Calendar'[Year])*100+MAX('Calendar'[Month]) = YEAR(TODAY())*100+MONTH(TODAY()),1,0),
    "Year",IF(MAX('Calendar'[Year]) = YEAR(TODAY()),1,0),
    "Custom",1),0)

Add this measure into visual level filter and set it to show items when value = 1.

vrzhoumsft_0-1723454738620.png

We can see that it could work in list or drop type slicer, and wouldn't work in between type slicer.

Here I suggest you to try Relative Date function in this slicer.

in this week:

vrzhoumsft_1-1723454823591.png

in this month:

vrzhoumsft_2-1723454868441.png

in this year:

vrzhoumsft_3-1723454881084.png

Custom = remove all filters to show all data.

 

Best Regards,
Rico Zhou

 

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

 

Thanks for the idea.
Can you help me by sharing your pbix. Would you like to go throw the methods and I could implement ?

Anonymous
Not applicable

Hi @pavithra_viki ,

 

You can download my attatchment to learn more details.

I hope it could help you solve your issue.

 

Best Regards,
Rico Zhou

 

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

lbendlin
Super User
Super User

Is that something your users have actually asked for?  Why not use the Filter Pane instead which gives you all that, and more.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.