Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
Ive got a problem building a dashboard, im trying to create a week date slicer for payroll in a datatable matrix,
My data is in the following format,
| Name | Date | Hours |
| Joe Blow | 1/01/2000 | 12 |
| Mark Bob | 2/01/2000 | 12 |
| Joe Blow | 2/01/2000 | 12 |
| Mark Bob | 2/01/2000 | 12 |
| Joe Blow | 3/01/2000 | 12 |
| Elvis Presley | 4/01/2000 | 12 |
| Joe Blow | 4/01/2000 | 12 |
| Elvis Presley | 4/01/2000 | 12 |
| Jillian Smith | 5/01/2000 | 12 |
| Mark Bob | 5/01/2000 | 12 |
| Jillian Smith | 6/01/2000 | 12 |
| Mark Bob | 6/01/2000 | 12 |
| Elvis Presley | 6/01/2000 | 12 |
| Jillian Smith | 7/01/2000 | 12 |
| Mark Bob | 7/01/2000 | 12 |
| Jillian Smith | 8/01/2000 | 12 |
| Mark Bob | 8/01/2000 | 12 |
| Jillian Smith | 9/01/2000 | 12 |
| Mark Bob | 9/01/2000 | 12 |
and ive attached the pbix file here
So ive added a weekday number and name, however can i get the dateslicer to somehow sort by week and maybe have a arrow to goto the previous week and the following week and in order?
like this but with perhaps a < > button.. i understand i can use relative dates.
Solved! Go to Solution.
@PowerBiNoob37 , Create a sort column
Week name sort = weekday([Date],1) //use 2 for Monday to be 1
MArk that as sort column of week day name
How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c
Hi @PowerBiNoob37 ,
You can try the following methods.
Column:
Weeknum = WEEKNUM([Date],1)
The weekly slicer can be presented in this way.
https://docs.microsoft.com/dax/weeknum-function-dax
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@PowerBiNoob37 , Create a sort column
Week name sort = weekday([Date],1) //use 2 for Monday to be 1
MArk that as sort column of week day name
How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |