Forum Discussion

evalromf's avatar
evalromf
Helper I
9 years ago
Solved

Sort table strings

Hi,   I'm trying to add a text into a table visual. The text for this table should be imported from a text file, in order to give an user the possibility to enter the text without having to go in t...
  • v-sihou-msft's avatar
    v-sihou-msft
    9 years ago

    evalromf

     

    In this scenario, if you don't want to sort the value in alphabet order, you must have an sort number column (like your Index column). You can have the TextString column sort by that index column and you don't need to put the index column into table visual at all. Just click the TextString field, then select the index column in "Sort by Column".

     

    Regards,

  • jessicammoss's avatar
    jessicammoss
    9 years ago

    Using your new text, I'm able to get the correct sort using my steps.  Do you have the latest version of the Desktop program?  What does the Order by look like within the Modeling tab?

     

    This is what I started with:

     

    This is the modeling tab:

     

    And this is the visualization:

     

    Additionally, if you want to use the long sentence and word wrap, you can use the custom visualization LongTextVisualizer: https://app.powerbi.com/visuals/

     

    HTH,

    Jessica