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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
katkar
Regular Visitor

Need Help to Create Default Hierarchical Slicer.

Hello,
I have a one urgent and important requirment about default slicer.
in my dashboard i have a hierarchical slicer for Year then month and then last Week end date all in one slicer.
so to automate i have created Dafault last Week end .and its working fine so far.
but problem arises when month changes. so when month changes from march to april that Default last Week end slicer need to change automatically.
not depend on month changes or year changes.

So basically I need  one hierarchical Slicer for year , month and last Week end. where it changes automatically when year changes month changes and week changes.
So please help me with the solution.
Thank you In advance.
Here is the Screenshot of slicer.

katkar_0-1710151111576.png

 






2 REPLIES 2
Anonymous
Not applicable

Hi @katkar 

 

My sample:

 

from 2024/1/1 to 2024/3/12

vxuxinyimsft_0-1710226008290.png

 

You can create a calculated column as follows.

Column = IF([Date] >= (MAX([Date]) - 7), "Prior week", FORMAT([Date], "dd-mm-yy"))

vxuxinyimsft_2-1710226206434.png 

 

After you add new data.

vxuxinyimsft_1-1710226133299.png

 

You need to click Refresh.

vxuxinyimsft_3-1710226271092.png

 

vxuxinyimsft_4-1710226329913.png

 

Best Regards,
Yulia Xu

 

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

Yes As you suggested i have already Created Prior Week as Custom SLicer but when month changes it stops in previous month and i need to select to the new month so requirement here is I want to select That prior Week in Current month Automaticaly. without selecting manually.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors