Forum Discussion

JS_UNI4C's avatar
JS_UNI4C
Helper I
2 years ago
Solved

Table sorting in Power BI desktop

Hi all,    Hoping someone can help me as I have no clue what has changed and why I suddenly keep getting this sort error when it worked perfectly fine in the past.    I am trying to sort a column...
  • JS_UNI4C's avatar
    JS_UNI4C
    2 years ago

    Hi, 

     

    Turns out that because I had another table in my data model that was using the same headers as this table, it was causing the conflict. I changed the table headers and it worked fine. 

     

    How I get around the same "null" values is by going into power query editor and then filtering those out, going back to DAX and then set the sort order before going into power query editor and removing the filter. It still keeps the same sort order then. 

     

    I didn't realise Power BI would consider a totally non-linked table to sort the current table but that was my issue and it is now resolved. Unfortunate that it took me almost an entire day to figure this out!