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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
moritzmassimo
Helper I
Helper I

Top/Flop N for each hierarchy while drilldown

Hi,

 

I have following issue that seems quite obvious, but I can't manage to solve it, nore find that exact problem here:

I have a hierarchy with two levels:

  1. Category (Vegetables, Meat, Milk etc.)
  2. Subcategory (Carrot, pork, Apple etc.)

Those categories should be displayed via a bar chart, compared by their sales increase to last year with a drill down to the next hierarchy level. Her comes the challenge now, I want to show within each hierarchy level the top 5 (sub)categories. When using the top n filter, both hierarchy levels are filtered, which is not requested. E.g. when filtering for top 5 Categories and then drilling down to sub categories I just get the sub categories of the top 5 categories.

 

Does anybody has an idea on how to accomplish that?

 

Thanks!

 

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @moritzmassimo ,

 

Please share some sample data so that we could create a pbix and test dax formula.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@moritzmassimo , Use isinscope to switch the top measure when you drill down

 

refer if needed

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.