Forum Discussion

oandroido's avatar
oandroido
Frequent Visitor
8 years ago
Solved

Brand new... why do numbers sort as alphas?

Hi all,   Just downloaded Power BI to experiment with visualization, and watched some tutorials, but none really covered what I'm trying to do -    Which is, basically, sort a column full of numb...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Anonymous answer is pretty much it.  I simply start with a few basic cleansing steps, such as using Transform -> Trim, if I get the error you have mentioned, then do a replace values for null to 0.

     

    Its also worth checking to make sure that this column doesn't contain any non-numeric values.  Depending on the source will depend on the data reliability.  For example, if you are getting the data from a program that only accepts numbers, then you will have more certainty that the data will be clean.  Conversely, if the data comes from excel where users type in information, a user could easy have entered "Eight" rather than 8.