Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi,
I have a dataset with the following
TIme Frame
Latest 4 wks - 02/06/2021
Latest 13 wks - 02/06/2021
Latest 26 wks - 02/06/2021
Latest 52 wks - 02/06/2021
I am using a create column function to give me the "Time Frame", either 4,13,26 or 52 and it is working good.
However because my formula to capture this = Trim(Left(Time Frame,12) gives me the correct results of:
Latest 13wks
Latest 26wks
Latest 4 wks
Latest 52wks
But now I want to use the above as a slicer and I want them to appear as the following which is also in sorted order by time frame:
Latest 04 wks
Latest 13wks
Latest 26wks
Latest 52wks
How can I accomplish this?
Solved! Go to Solution.
@Anonymous ,
Create new column as WeekNum like below:
WeekNum = WEEKNUM(Table[YourDateColumn])
Then go to Data view then select TimeFrame Column then click on "Sort by Column" then choose the above WeekNum column. (See the attached screen shot)
Final Output:
@Anonymous ,
Create new column as WeekNum like below:
WeekNum = WEEKNUM(Table[YourDateColumn])
Then go to Data view then select TimeFrame Column then click on "Sort by Column" then choose the above WeekNum column. (See the attached screen shot)
Final Output:
@Anonymous , I am assuming these are values in the column, Create a column that has sort order for these columns.
Refer my video, I have explained that in details:https://www.youtube.com/watch?v=KK1zu4MBb-c
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 21 | |
| 20 | |
| 13 |
| User | Count |
|---|---|
| 59 | |
| 53 | |
| 41 | |
| 31 | |
| 26 |