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
ShaoyuHung
Helper I
Helper I

How to fulfill Slicer using first day of year and today?

How to fulfill Slicer using first of year and today?

 

I Want to fulfill Start: 2022/1/1 ,End : 2022/2/22,If today is 2022/2/22 .

 

ShaoyuHung_0-1645518049862.png

excepted slicer (If today is 2022/2/22): 

ShaoyuHung_1-1645518077125.png

 

3 REPLIES 3
v-chenwuz-msft
Community Support
Community Support

Hi @ShaoyuHung ,

 

You can create a table named slicertable via calendar (date(year(today()),1,1),today()).

Pbix file in the end you can refer.

 

Best Regards

Community Support Team _ chenwu zhu

 

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

ShaoyuHung
Helper I
Helper I

Thank you !

amitchandak
Super User
Super User

@ShaoyuHung , You can not initialize/default a range slicer. You can log an idea - https://ideas.powerbi.com/ideas/

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.