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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
athren
Frequent Visitor

Pass Fail Inspection Score Average?

I am new to PowerBi, I work in a Hospital within the Housekeeping department. In essence we are trying to calculate inspection scores for our visual room inspections. In the past I created an Excel spreadsheet that we would just input our data from our paper inspections over for it to calculate those scores. However we recently received cellphones and excel on a mobile phone is possible but very user unfriendly. 

So it was brought to my attention of using our sharepoint as our datasource and the microsoft list app to do the inspections on. The issue I have now is achieving the formulas to give me a percentage score for each room. As you can see in the image below, there 16 items we are inspecting, the title is the room that is being inspected. I know we have sections called Corrected, I am unsure if the complicates the equation more so. 

I thought I could do something that would Count the number of Pass in a row for one column, one to do the same for corrected and fail. And then do something similar to excel where I can just divide the number of items passed divided by the number of items inspected. But I'm not working with Cells in excel, PowerBi seems column centric and it generates a lot of columns that I don't know how to exclude. 

If someone can just show me a formula that would work, even just a small test sample With Ceilings, Walls and Floors only I am sure I can just add all the other columns unless it doesn't work that way. 

But my table that holds for all of these columns is called Visual Inspections, I been beating my head for weeks trying to solve this. So any help or guidance would be appreciated, if not that is okay. I am watching a lot of Youtube videos so eventually something will click.

PowerBI Image Help.png


For example using a smaller data pool I am trying to achieve something like this....

CeilingWindowsWallsDoorFloorPass CountFail CountCorrected Count

1st time Inspection Score %
(Pass vs Fail & Corrected)

 

2nd time Inspection Score %
(Pass & Corrected vs Fail)
PASSPASSFAILPASSPASS41 80%80%
PASSPASSCORRECTED  2 166.6%100%
PASSFAIL   11 50%50%

 

But I am open to any suggestions for a more efficient method, as this is basically what I did on excel.

1 ACCEPTED SOLUTION
athren
Frequent Visitor

When all else fails and I ask for help, I ended up figuring it out the very next day. However if other people find themselves in the same situation this is what I did....

Show of Work.png

View solution in original post

3 REPLIES 3
athren
Frequent Visitor

When all else fails and I ask for help, I ended up figuring it out the very next day. However if other people find themselves in the same situation this is what I did....

Show of Work.png

Hi, I am trying to calculate the same formula for my data.  Did you write a measure for each column [Cabinets], [Ceilings], etc... and then plug that into the IF function? My version of your solution is not working.

 

Thank you!

Hi, @athren 

It's pleasant that you can share your sloution to us, people who meet a similar problem will be very happy with it.

Please accept your reply as solution to close this thread, so that other community members will easily find the solution when they get the same issue.

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.