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

Count text occurrences in table by item

I'm new to PowerBI and for the life of me I can't seem to find the answer for this.

 

I'm looking for a count of all "passes" and "fails" by studentID. 

I would like to display the results in a stacked column chart. I've attempted measures, but they all return the same result for all the students, whereas I want the unique results per student.

 

STUDENT-ID                     RESULT

student01                           pass

student01                           pass

student01                           fail

student02                           pass

student02                           pass

 

 

Any help would be greatly appreciated!

1 ACCEPTED SOLUTION
zivhimmel
Resolver I
Resolver I

should be something like that:

 

new_measure_name=CALCULATE(count([RESULT]),RESULT="pass")

 

View solution in original post

2 REPLIES 2
zivhimmel
Resolver I
Resolver I

should be something like that:

 

new_measure_name=CALCULATE(count([RESULT]),RESULT="pass")

 

Anonymous
Not applicable

That does it! Thanks for the fast reply, that was quick!!!

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