Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Possible to sort cells?

Hello everyone i want powerBi to automatically sort something within a cell. Is this even possible? Because, I found nothing regarding cells in PowerBI so far on the internet. Anyhow my problem is...
  • Greg_Deckler's avatar
    6 years ago

    Well, you could get there via DAX but it would be fairly nasty. You would need to create a column for each of your 10 things. You would use a formula like the following for each:

     

    Column = 
        VAR __find = "Colour: "
        VAR __pos = SEARCH(__find,[Column1])
        VAR __semipos = SEARCH(";",[Column1],__pos)
        VAR __len = LEN(__find)
    RETURN
        MID([Column1],__pos + __len, __semipos - (__pos + __len))

     

    See attached.