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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Sum/count of true events in a measure

Hi Guys

 

I have created a standard matrix as below. Now i would like create a table or matrix next to it showing the number of Pick IDs where the average percentage in the selected period is above 40%, below 10% and in between.  I am using a date slicer.

Capture.PNG

I've tried creating a measure that returns a 1 if the average for example is above 40% but i can't find a function to counts the 1s that are returned. 

 

Measure formula is = IF(AVERAGE('Salling Group'[Utilization %])>0,4 , 1 , 0)

 

Hope my question makes sense. 🙂

3 REPLIES 3
ntaylo06
Resolver II
Resolver II

You won't want to use a measure for this, a measure is a single calculation. If you create a new matrix/table and fill it with the exact same data, you should be able to filter it based on the value of a field, like this: 

 

Untitled.png

 

Anonymous
Not applicable

Thanks for the reply.

 

That would create a table that shows alle items with an average of above 40% and the grand total would be the average of all the items.

 

I just need a count of all the items that has an average ov over 40%.

In that case, use something like:

Forty Plus Average = CALCULATE(AVERAGE('table'[field]), 'table'[average] > .4)

But when you say "the grand total would be the average of all the items" that is describing the total of a table. You also said you wanted a table in your original post. Can you please clarify which one you are wanting?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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