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
Anonymous
Not applicable

Average Calls per day, grouped by month

How do you calculate the average of [wholds] in the month? Activity date is connected to a date table.

 

Idealy, Id like to be able to know how many [wholds] a Sales rep made per day based off the number of days in the month. 

 

Essentially it would be the disctinct count of wholds in the month divided by the number of days in the month, and I could put it into a matrix/table that would know which month the calculation corresponds to. 

 

 

WholdsActivity Date
random numbers04-10-22
random numbers04-12-22
random numbers03-06-22
random numbers02-28-22

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 

You can use

DIVIDE ( TableName[Wholds], COUNTROWS ( 'VALUES ( "Date'[Date] ) ) )

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

Please check the formula.

Meaasure =
VAR count_wholds =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Wholds] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Activity Date].[Year] = SELECTEDVALUE ( 'calendar'[Date].[Year] )
                && 'Table'[Activity Date].[Month] = SELECTEDVALUE ( 'calendar'[Date].[Month] )
        )
    )
RETURN
    count_wholds / COUNTROWS ( 'calendar' )

 

Best Regards,

Jay

Anonymous
Not applicable

It did not work, I take it 'calendar' is the calendar table I have attached to the activity date.

 

tamerj1
Super User
Super User

Hi @Anonymous 

You can use

DIVIDE ( TableName[Wholds], COUNTROWS ( 'VALUES ( "Date'[Date] ) ) )

Anonymous
Not applicable

This worked if the columns in the matrix are from the Date/Calendar table used and not from the Date from the Datatable. 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.