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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Count Pass/Fail per month by KPI Priority Group (i.e. not individual jobs)

Hello, does anyone know how I can calculate the above?

 

I have a measure that evaluates an expression (checks if job date was completed before due date) and outputs "Pass" or "Fail" 

I also have Priority Groups each with different target rates, and these are basicaly the KPI's (i.e. 'P1 & P2' with 100% target, 'P3 & P4' with 95% target 'S' with 98% pass target, etc)

I want to know, by Month, and for each Priority Group, the count of "Pass" and "Fail"

 

 

The main issue is getting the count of Pass/Fail based on the Priority Group and not for every single job. 

Here is my measure that counts the Pass/Fail for each Priority Group:

 

pbiuser001_0-1663474010620.png

 

I basically just want to count the highlighted below:

pbiuser001_1-1663474218067.png

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Just tried something and looks like it's working! (in case anyone else is struggling with something similar)

pbiuser001_2-1663473500300.png

 

View solution in original post

10 REPLIES 10
Anonymous
Not applicable

Just tried something and looks like it's working! (in case anyone else is struggling with something similar)

pbiuser001_2-1663473500300.png

 

tamerj1
Super User
Super User

Hi @Anonymous 

please try

Pass Count =
SUMX ( VALUES ( 'Table'[Job ID] ), IF ( [Measure] = "Pass", 1 ) )

Anonymous
Not applicable

Hi @tamerj1

 

This is returning a blank...

pbiuser001_0-1663409014472.png

 

 

Also I am not wanting to count the number of jobs, this is too low of a granuliarity. The jobs are roled up into KPI groups (e.g P1 & P2, P3 & P4, etc)

 

I have the job data in a table, the calendar data in another table, and a dimention table for my priority codes

@Anonymous 

Then try by iterating over the KPI Goup column. You need to iterate over the granularity level column that produces results for [MeasureResp]

Anonymous
Not applicable

Still blank 😕

 

pbiuser001_0-1663470887567.png

 

 

This is my Measure that produces the result

pbiuser001_1-1663470933056.png

 

tackytechtom
Super User
Super User

Hi @Anonymous ,

 

Can you share the pbix file or some data and its outcome? 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Anonymous
Not applicable

UPDATE: Managed to get this

pbiuser001_0-1663410359361.png

But I need it to show blanks as well as true and false, any idea how I could do that?

 

I'm also stuck here, the numbers aren't adding up to the actual pass results from my original table...

pbiuser001_1-1663412246175.png

 

 

 

---



Hi @tackytechtom my file is very large and connected to a sql database.

 

I can provide the calc that I used for my "Pass" / "Fail" measure:

 

pbiuser001_1-1663409675136.png

 

I have tried using SUMMARIZE but can't figure out to swap out the number values with the values from my measure above

 

pbiuser001_0-1663409615406.png

 

tackytechtom
Super User
Super User

Hi @Anonymous ,

 

Would this one here help you?

 

Let me know! 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Anonymous
Not applicable

Hopefully this may help.

 

Would like to get the result to give the percentage of the "pass" per month for each column category:

 

pbiuser001_0-1663408163342.png

So for instance P1 & P2column,

Fail = 5, Pass = 1,

then divide Pass / Total to get the average pass for P2 & P2 for this year

 

Anonymous
Not applicable

Hi @tackytechtom thank you for responding!

 

I'm not sure which one to apply to my situation.

 

e.g If I have 100 jobs in a month, each of these jobs has a priority code, and the priority code has a KPI (e.g. 95% pass rate for P3, 100% pass rate for P2, etc)

 

I have calculated the above using a Measure (not a calculated column)

 

I have tried to use SUMMARIZE but it doesn't allow me to return a text value from my measure...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.