Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ssbbb
New Member

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 groups

  • Top 10 Rest of the World
    • Country1
    • Country2
  • Rest of the Wold
    • all other countries

 

I was able to find Dax examples for making only a top10, but nothing to make such a hiearchy mix between fixed and dynamic groups... 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @ssbbb 

 

Based your information, I create a table:

 

vyohuamsft_0-1709275692686.png

 

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

vyohuamsft_1-1709276566559.png

 

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"
)

vyohuamsft_4-1709277117401.png

 

vyohuamsft_2-1709277055610.png

 

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.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @ssbbb 

 

Based your information, I create a table:

 

vyohuamsft_0-1709275692686.png

 

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

vyohuamsft_1-1709276566559.png

 

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"
)

vyohuamsft_4-1709277117401.png

 

vyohuamsft_2-1709277055610.png

 

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.

It's great but, how to mix them ? You showed me how to make a fixed and a dynamic, but the question was how to mix them ?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors