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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Sorting Day Name/ Date - not by week number / month number

Apologies if this is obvious - i have a report where the date is shown DAYNAME / Date with the most recent date at the top:

GP93_0-1628248244548.png

The value shown here is a calculated text column in my date table. It using sort by - calendar date:

GP93_1-1628248358430.png

 

I am recreating this report (moving from direct SQL connection to Power BI shared dataset and have followed the exact same process but I am now getting the error: 

GP93_2-1628248466725.png

I can't see how i am getting this error when the exact same thing works perfectly in the old report, the only values i can sort by are day number of month/ day number of week but these do not show the values in the way that i need them to show - would appreciate any help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

So I was able to 'fix' this by going into power query , changing the date table to look only at a few dates, closing and applying, sorting by the date and then undoing the power query changes. This works for me as the report is only ever looking at the last 7 days.

 

Would still like to keep this ticket open to see if anyone knows of a good way of fixing it rather than the method I used.

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

The values in CALENDAR_DATE are unique but the values in Date Text Full are not.

For example, if your date table spans 2019 and 2020, then you'll have Jun-30 in multiple rows with 190630 and 200630 in the sorting column. So Power BI doesn't know which index to use for sorting purposes.

 

Anonymous
Not applicable

So I was able to 'fix' this by going into power query , changing the date table to look only at a few dates, closing and applying, sorting by the date and then undoing the power query changes. This works for me as the report is only ever looking at the last 7 days.

 

Would still like to keep this ticket open to see if anyone knows of a good way of fixing it rather than the method I used.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.