Forum Discussion

BojepJoe's avatar
BojepJoe
New Member
11 months ago
Solved

Multilevel Custom Sorting Clustered Column Chart

Hi, I have a chart with drill down for each category. I want to sort the x axis on each level based on my own custom order. For example this milk category have different size that I want to sort exa...
  • rohit1991's avatar
    11 months ago

    Hi BojepJoe 

     

    To get multilevel custom sorting in a clustered column chart:

    1. Create Sort Tables

      • One for Category with your custom order (Category, SortKey_Category).

      • One for Subcategory with order inside each category (Subcategory, SortKey_Sub).

    2. Model Setup

      • Relate Fact[Category] <<CategoryOrder[Category].

      • Relate Fact[CatSubKey] << SubcategoryOrder[CatSubKey].

    3. Sort by Column

      • In Model view:

        • Category<<Sort by SortKey_Category.

        • Subcategory<<Sort by SortKey_Sub.

    4. Hierarchy & Visual

      • Build a hierarchy: Category<<Subcategory.

      • Place it on the X-axis of your clustered column chart.

      • Enable Drill Down to move between levels.