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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
LukasPardon
New Member

Creating buttons to go back and forth a week

How do i create this:

LukasPardon_0-1695650485894.png

Two buttons, one that lets me go back 1 week and one that lets me go forward 1 week, while displaying the calender week in the middle?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @LukasPardon ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1695783045673.png

(2) We can create a calculated column.

Week = WEEKNUM('Table'[date],2)

Refer : WEEKNUM function (DAX) - DAX | Microsoft Learn

(3) Use this calculated column as a slicer and format it as shown below.

vtangjiemsft_1-1695783467989.pngvtangjiemsft_2-1695783485682.pngvtangjiemsft_3-1695783496873.png

Best Regards,

Neeko Tang

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

3 REPLIES 3
amitchandak
Super User
Super User

@LukasPardon , Create slicer as tile or orientation as horizontal. and give space for only 1 title

 

amitchandak_0-1695700527716.png

 

 

when you move

 

amitchandak_1-1695700546249.png

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

What data would i use in the values field? I have a lot of data that uses individual dates (DD,MM,YYYY) and i somehow need to connect it to the slicer, so that i knows what dates correspond to what weeks.

Anonymous
Not applicable

Hi @LukasPardon ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1695783045673.png

(2) We can create a calculated column.

Week = WEEKNUM('Table'[date],2)

Refer : WEEKNUM function (DAX) - DAX | Microsoft Learn

(3) Use this calculated column as a slicer and format it as shown below.

vtangjiemsft_1-1695783467989.pngvtangjiemsft_2-1695783485682.pngvtangjiemsft_3-1695783496873.png

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.