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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors