Forum Discussion

ssbbb's avatar
ssbbb
New Member
2 years ago
Solved

Mix fixed and dynamic groups in the same hierarchy

I would like to realize a hierarchy on countries with - Fixed Groups, for example Benelux Belgium Netherlands Rest of EU France Germany ... - And in the same hierarchy, also dynamic gr...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi, ssbbb 

     

    Based your information, I create a table:

     

     

    In Power BI, you can put Country and Fix Group into the matrix.

     

    For dynamic groups, we need to create a calculated column to group them and put them into the matrix view, as shown in the image below:

    Dynamic Group = 
    IF(
       RANKX(
            ALL('Table'),
            'Table'[Value],
            ,
            DESC,
            Dense
        )<= 6,
        "Top 6 Rest of the World",
        "Rest of the World"
    )

     

     

    How to Get Your Question Answered Quickly 

    Best Regards

    Yongkang Hua

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.