Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi all!
I have a table that has a column with the day of the week: Monday, Tuesday...
Now I would like add a column with a number to be able to order this column in the right sequence.
But I always get an error that this is not possible since there a independencies between both columns.
How can I add a sequence column to be able to order the column?
Solved! Go to Solution.
@joshua1990 , oh I see. Try this Calculated Column:
DayOfWeekSequence = 
    SWITCH('YourTable'[TextColumn],
        "Monday", 1,
        "Tuesday", 2,
        "Wednesday", 3,
        "Thursday", 4,
        "Friday", 5
        "Saturday", 6,
        "Sunday", 7
    )Then set the Sort by Column option for 'YourTable'[TextColumn] to sort by the DayOfWeekSequence column.
 
					
				
		
@Anonymous : This works just with Date columns
@joshua1990 , try this for your Calculated Column:
DayOfWeekSequence = WEEKDAY('dimDate'[Date])In my Date table, it gives me this result:
I can then select the DayOfWeekSequence column to sort the DayOfWeek column:
Is this what you are looking for?
Hi, as mentioned I dont have a Date column
I have a text column that contains the day of the week, thats it.
@joshua1990 , oh I see. Try this Calculated Column:
DayOfWeekSequence = 
    SWITCH('YourTable'[TextColumn],
        "Monday", 1,
        "Tuesday", 2,
        "Wednesday", 3,
        "Thursday", 4,
        "Friday", 5
        "Saturday", 6,
        "Sunday", 7
    )Then set the Sort by Column option for 'YourTable'[TextColumn] to sort by the DayOfWeekSequence column.
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 23 | |
| 14 | |
| 11 | |
| 10 | |
| 9 |