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

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

Reply
sacali
Microsoft Employee
Microsoft Employee

Calculate overall result for a row of a pivoted matrix

Hi,

I'm trying to do something similar to this post (https://community.powerbi.com/t5/Desktop/Need-overall-status-based-on-individual/td-p/1143868) but with an added layer of complexity.

 

I have a table which looks sort of like this

 

Name   Result

blah      Pass

blah      Pass

meh      Pass

blah      Pass

meh      Fail

 

I want to calculate an "overall result" for each distinct "Name". So if every row where Name is "blah" has result "Pass", as above, then its overall result should be "Pass", while if there's a single "Fail" (as with "meh") then the overall result should be "Fail". I've seen a lot of similar calculations in other posts, but none which cover segregating the overall result on a per-name basis.

 

Right now, the data is visualized in a pivoted matrix based on the original table that looks like so

 

Name  Pass  Fail

blah     3       0

meh     1       1

 

I would want the end result to look like this:

 

Name  Pass  Fail  Overall

blah     3       0     Pass

meh     1       1     Fail

 

If the actual table were organized in the DB into rows and columns like the pivoted matrix, the calculation would be doable, but that's not an option for me. Anyone have any ideas how I can get the multiple distinct overall results when all results share a single column in the table?

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks! This took care of it.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
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