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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Cobra77
Post Patron
Post Patron

how to filter on the top 5 of each level of a hierarchy

Hi ,

 

how to filter on the top 5 of each level of a hierarchy ?

Thanks for your help.

 

Best regards.level_top.jpg

4 REPLIES 4
rajendraongole1
Super User
Super User

Here is a blog describing Ranking with Hierarchy Drill-Down for your reference.

 

 

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

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @rajendraongole1 , thanks for the link

I'm trying, but as soon as I add level 3, and put the rank to filter the first 5, the isfiltered tests on the levels are true for the 2 levels

 

level_top.jpg

 

 

 

 

 

Hi @Cobra77 ,

 

We can use ISINSCOPE to work on it instead of isfiltered.

Measure = IF(CALCULATE(SUM('Table'[value]))<>BLANK(),IF(ISINSCOPE('Table'[date].[Day]),RANKX(ALL('Table'[date].[Day]),CALCULATE(SUM('Table'[value])))))

Capture.PNG

For more details, please check the pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

hi @v-frfei-msft , @rajendraongole1 

 

my pbix report is based on a live connection to an SSAS tabular 2016.

I don t have the function ISINSCOPE 😞

 

neither in visual studio nor in the pbix on the cube

 

isinscope.jpg

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors