Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I would like to realize a hierarchy on countries with
- Fixed Groups, for example
- And in the same hierarchy, also dynamic groups
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...
Solved! Go to Solution.
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.
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.
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 ?