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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Chandrashekar
Resolver III
Resolver III

Sorting Issue : Week No

Hello,

 

am not able to sort on week number. I am using calender table where I have fields

1. Weekname - String format(Week-01, Week02 etc...)

2. Weeknum = Number (1, 2 etc..)

here am trying to sort based on weeknum but am getting error as shown in screenshot below.

 

Chandrashekar_1-1673248519816.png   Chandrashekar_2-1673248554026.png

 

 

 

6 REPLIES 6
amitchandak
Super User
Super User

@Chandrashekar , Of they follow same logic

 

Example

 

Week Name = "Week " & weeknum([Date], 2)

 

Week Sort= weeknum([Date], 2)

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello,

 

Can you please me on it.

 

Regards,

Chandrashekar B

Hello Amit,

 

I tried your solution but it is not working for me. I have attached sample data can you please let me know how to fix it.

 

PBIX: Sample Data 

 

Regards,

Chandrashekar B

 

 

Hello Amit,

 

I am sharing working file which I worked and not working for me.

Sample: Sample Data 

 

Regards,

Chandrashekar B

Hello,

 

Can you help me on it.

 

Regards,

Chandrashekar B

Hello,

 

Any solution for it.

 

Regards,

Chandrashekar B

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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