Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Sorting on a specific column [issue]

Hello, I am trying to sort a slicer in the way I would like it to be displayed. Currently my issue lies within sorting category by a category # my category # code currently: Category # = SWITC...
  • dedelman_clng's avatar
    7 years ago

    You might want to try to make this a separate calcaulted dimension table, then have a relationship back to the fact table.  Something along the lines of:

     

    CategoryTab = 
      ADDCOLUMNS(
         SUMMARIZE(FactTable, FactTable[Category]),
        "Category #", [Insert your switch formula here]
    )

    You should then be able to sort Category by Category # in this table, and use this new table in the slicer.

     

    Hope this helps

    David