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
rtreble
Frequent Visitor

Counting measures

Hi

 

We are looking at flagging whether the average time taken for a machine to do it's thing on a particular day is either above or below control limits (which are mean +/- 3 standard deviations for that machine - based on a rolling 3 month period).

 

We have successfully created a "flag" which is a measure that returns 1 if the daily average is above or below the control limits, or 0 when within control limits.

 

Power BI Post.PNG

 

What we would like to do is count how many times the machine was "out of bounds" within say a month, by counting this measure within a month aggregation.

 

Any help much appreciated.

3 REPLIES 3
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @rtreble

 

Something along these lines should work

 

Measure = COUNTROWS( FILTER  ( <yourtable> , [Flag_Binary] = 1 ) )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi Phil

 

Thanks for your post ... having trouble getting it to work though ... does your solution apply to counting rows in a table - what I'm after is counting results of a measure.

 

R.

What I suggested was a measure that counts rows in a table.  

 

Do you have a screenshot of your table?  Or can you post a sample version of your data

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

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.

Top Solution Authors