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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SoufTC
Helper I
Helper I

How to get a average of count in values of matrix

Hello everyone,

 

I have daily data of received calls with date, day and time.

 

SoufTC_0-1630427587327.png

 

I try to make a matrix that calculates the average of number of calls received per day and per hour

 

SoufTC_2-1630428149933.png

 

I have the number of calls received = count(Mytable['DATE'])

 

But I can't get the average for each value by hour and day

 

Could someone tell me what I am missing to make the average work?

 

Thank's in advance,

bof,

1 ACCEPTED SOLUTION
SoufTC
Helper I
Helper I

Finally the answer was much simpler than that just by calculating the measure in this way:

 

measure = count(Mytable['DATE'])/ DISTINCTCOUNT(Mytable['DATE'])

View solution in original post

2 REPLIES 2
SoufTC
Helper I
Helper I

Finally the answer was much simpler than that just by calculating the measure in this way:

 

measure = count(Mytable['DATE'])/ DISTINCTCOUNT(Mytable['DATE'])

Greg_Deckler
Community Champion
Community Champion

@SoufTC This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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