Forum Discussion

powowbi's avatar
powowbi
Regular Visitor
4 years ago
Solved

Top N + Other based on dimensional attribute

Hi,   I need to create a top n and others column based on sales in the fact table. I can do this for a dimension directly linked to the fact table. However, I'm struggling to create one for a dimen...
  • powowbi's avatar
    4 years ago

    I managed to do this using the same RANKX based TopN+other column on a colours table joined to colours column in the Product table (1-many), so can still link back to sales table.

     

    I guess I'll need more such tables if I need more TopN+others on attributes, but better than messing with the fact table. Model beginning to look more like snowflake.

     

    Thanks for the pointer johnt75. It may have an even better answer but it was a frighteningly big article!