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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Amomin1988
Frequent Visitor

Calculating # of Errors

Hello, I'm new to Power BI and am trying to figure out how to do the following:

 

I have a table that shows # of readings present for every meter at a 900 second interval.  What I am trying to do is define the value of 0 as an error. I have meters with 0 readings and up to 3 readings within an interval.  

 

#Error = |Max Readings - Actual| 

Total Possible = Total Errors + Total Actual

 

What I'm trying to do is create a line graph that will show errors/gaps as spikes.  I've tried to create if then statements but I can't seem to get what I need.  Would this be a Measure or a Custom Column?

 

Edit: Created a calculated column with if/then/else statements labeling a specific values are error and non-error.  

1 REPLY 1
Anonymous
Not applicable

This 

 

#Error = |Max Readings - Actual| 

Total Possible = Total Errors + Total Actual

 

can be simplified to

 

#Error = Max Readings - Actual // since Max Readings (=3) will always be at least as big as Actual, right?

Total Possible = Total Errors + Total Actual = Max Readings = 3

 

A file is attached with something inside you could experiment with.

 

Best

Darek

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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.