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! Request now

Reply
Anonymous
Not applicable

Help count the number of students that match all the selected requirements

Hi everyone,

 

I'm pretty new to PowerBI and I'm struggling to get my head around some of the more complex nested formulas.

 

I have this scenario that I'm trying to deal with:

 

First I have a hierachy slicer that uses a PATH table like so, 

Level 1Level 2Level 3
Subject 1  
Subject 1Module 1 
Subject 1 Module 2 
Subject 1Module 1Lesson 1

 

I then have an unpivoted table with the student IDs, an attribute column that contains the subject, module and lesson names, then a value column that says whether they have passed or not.

What I'm trying to achieve is, I want the ability to select random modules, lessons, etc., and display the number of students that have passed all of the selected requirements. 

Any help would be greatly appreciated,

Thank you
 

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, seems it's not very clear about your data model. 

I create a sample:

Table1.

vkalyjmsft_0-1656322457174.png

Table2.

vkalyjmsft_1-1656322477390.png

So, when you select a value in the three slicers: Level1, Level2 and Level3, do you want to get the number of students whose three levels are all "pass" ? 

Please check if my sample the same structure with yours, if not, please provide a example to clarify the problem.

Best Regards,
Community Support Team _ kalyj

Anonymous
Not applicable

Hi @v-yanjiang-msft ,

 

That's exactly what I am after thank you.

Adam

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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