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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
scoutmedic
Helper I
Helper I

Calculated Threshold By Production and Error

Good afternoon, I'm new to PBI and developing reports for my organization. I've taken some basics courses and searched the forum, but I'm stumped. I'm trying to create a calculated threshold line on a bar chart based on production volume and acceptable error rates so we can see when a location exceeds the acceptable defect threshold. Here is sample data I'm working with:

 

Production

Cost CtrLocationDate

Volume

1

Chicago1/1/24

300

2Tokyo1/1/24500
3New York1/1/24200
1Chicago1/1/24450
2Tokyo1/1/24550
3New York1/1/24175
1Chicago1/1/24250
2Tokyo1/1/24500
3New York1/1/24300

Errors

Cost CtrDateCategoryPart
11/1/24BrokenWheel
11/1/24Incorrect PartGear
21/1/24MissingPaint
21/1/24BrokenWheel
31/1/24BrokenGlass
31/1/24MissingHandle
11/2/24Incorrect PartMotor
11/2/24Incorrect PartGear
21/2/24BrokenWheel
31/2/24Incorrect PartMotor

 

Thresholds

Error

PartThreshold (per 100 units)
BrokenGlass0.2
BrokenMotor0.3
BrokenWheel0.1
Incorrect PartGear0.05
Incorrect PartMotor0.6
MissingHandle0.5
MissingPaint0.25
MissingWheel0.3

 

 

Any ideas how this can be accomplished?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

you will want to expand your data model a bit.

 

lbendlin_0-1719452508797.png

and then you can use TREATAS to lookup the thresholds.

 

lbendlin_1-1719452542482.png

And compare against the actual error rate

lbendlin_2-1719452568278.png

 

 

 

 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

you will want to expand your data model a bit.

 

lbendlin_0-1719452508797.png

and then you can use TREATAS to lookup the thresholds.

 

lbendlin_1-1719452542482.png

And compare against the actual error rate

lbendlin_2-1719452568278.png

 

 

 

 

That worked great! I was able to create a combo chart and add the Acutal field to the secondary Y-axis to show number vs actual allowed.

 

It took me a while (and some internet searching) to figure out how not to summarize the Threshold and Actual columns. The trick was creating them as measures, not columns.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.