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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jcastr02
Post Prodigy
Post Prodigy

sorting comments from newest to oldest - Matrix

I have a matrix with open text comments from a survey.. I am trying to organize them from newest to oldest.  I tried to use "sort column by' Completion date but it's giving me an error.  One column has dates, the other has texts?  However, getting the below error message, what can be done?   In query editor, I have the date set to date/time format, and the comments to text.comments newest to oldest.png

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @jcastr02 ,

 

You could check if your tables have relationships to affect sorting feature.

You could also take a look at the following blog about creating a custom sort order table to achieve customer sort order:

Custom Sorting in Power BI

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

Try to create a dense rank column on date and then try to use that column to sort comment

https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures

 

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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