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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
shilpa123
Frequent Visitor

Wants to set default current week and previous week in slicer

Hi 

I have a requirement like by default in slicer it should select current week and previous week in the slicer  can any one please help me out with this requirement.

 

 

Thanks

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @shilpa123,

The current slicer does not support setting default values, you can create a calculated column to check row values based on current DateTime and return flags.

After these steps, you can manually select the flags and save them to bookmark, then you can bind this bookmark to the button action and use it to reset the default selection. (notice: this calculate column will be dynamic change based on current system DateTime)

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Docs
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @shilpa123,

The current slicer does not support setting default values, you can create a calculated column to check row values based on current DateTime and return flags.

After these steps, you can manually select the flags and save them to bookmark, then you can bind this bookmark to the button action and use it to reset the default selection. (notice: this calculate column will be dynamic change based on current system DateTime)

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Docs
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
kapinal
Regular Visitor

Hi, If you have any requirement like by default in slicer. you can contact Dynamics Square. Dynamics Square is a Microsoft Partner. You can contact directly

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.