Forum Discussion

bcampbell's avatar
bcampbell
Helper I
5 years ago
Solved

AVERAGES in a Matrix Table ??

How could I solve this problem

 

I have a Matrix Table showing the Day of the Week and Time by Hour

 

I have Count of Values , but if I broaden up the time frame mroe than a week , then my Values will just increase

 

I would rather know the averages,  I tried to do a quick measure 

 

 

Count of number average per SOH = 
AVERAGEX(
	KEEPFILTERS(VALUES('emmain'[SOH])),
	CALCULATE(COUNTA('emmain'[number]))
)

 

 

 

And applies that measure as the values on another matrix table , but all it appears to be doing is summing the totals.

 

How could I do this correctly ?

Thanks

-Brad

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi bcampbell ,

     

    Try

    Count of number average per SOH =
    AVERAGEX ( ALLEXCEPT ( emmain, emmain[SOH] ), COUNTA ( emmain[number] ) )

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi bcampbell ,

     

    Try

    Count of number average per SOH =
    AVERAGEX ( ALLEXCEPT ( emmain, emmain[SOH] ), COUNTA ( emmain[number] ) )

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi bcampbell ,

    Could you tell me if your problem has been solved?
    If it is, kindly Accept it as the solution. More people will benefit from it.
    Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.


    Best Regards,
    Stephen Tao