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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Error while sorting

Hi All,

  Need help for below error

I am trying to sort the column but it is giving below error.

 

Capture.PNG

any suggestions would be appreciated.

 

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

It's obvious that the second column has more than one distinct value.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

 


@v-chuncz-msft wrote:

 

 

It's obvious that the second column has more than one distinct value.



Yes,I do understand that there are multiple values in one column .Because We have applied If,else condition to display the Month-year which comes under range which displays  "NA",Date," month" values

 

I am looking for workaround or solution for this problem.

actually what I want to do is sort the data by month-year like Mar-2019 to mar-2018 and display data only for last one year.

 

Anonymous
Not applicable

Hi DAX_Learner07,

 

Your sorting column should be in integer/whole number. If it is text or in Date format, then it throws an error.

 

Regards,

Pradeep

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.