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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jordipmend
New Member

Issues regarding sorting graphics with numeric data

Hello everyone, 

 

I'm a little new using Power BI Desktop, but I'm trying to sort some graphics using Power BI and seems that - with numbers - I'm unable to sort it using numeric data. 

 

The graphic has 2 columns - one numeric and one with a Countries list. When sorting the graphic from major to minor using the numeric column, either my computer or Power BI sort the graphic showing numbers like 8, 7, 6, 5 etc... major than 12 or 13; cause these last two have a 1 before. 

 

Does anyone know why this occurs? 

Thank you in advance, and apologies if such question is a really newbie one. 

 

Thanks a million!

2 ACCEPTED SOLUTIONS
Floriankx
Solution Sage
Solution Sage

Hello,

 

my guess they are formatted as Text. Please check Text Format of your column in your editor.

 

Best regards

View solution in original post

danextian
Super User
Super User

Hi @jordipmend,

 

If you've loaded your dataset to your model without setting the columns to the correct/or intended data type, then your numeric columns is most probably of type any (abc123) and will behave like a text column in your model. As @Floriankx said, check your data type. 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @jordipmend,

 

If you've loaded your dataset to your model without setting the columns to the correct/or intended data type, then your numeric columns is most probably of type any (abc123) and will behave like a text column in your model. As @Floriankx said, check your data type. 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @Floriankx and @danextian

Thank you so much!! 

 

Problem solved! Thank you lots for all your help and instructions! 

Best regards!

 

Floriankx
Solution Sage
Solution Sage

Hello,

 

my guess they are formatted as Text. Please check Text Format of your column in your editor.

 

Best regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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