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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
hadasim
New Member

calculate average of each worker

Trying to calculate average call time for each dispatcher. I assume that you first need to sort the column by the name of the caller and only then calculate an average for each of them separately... I started writing the function in DAX but I can't reach the result....
ממוצע משך שיחה = CALCULATE(AVERAGE(Query1[call_duration]),FILTER(Query1,Query1[שם נציג])=EARLIER(Query1[שם נציג]))
 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@hadasim , In case you need a measure that is average

 

Average(Query1[Call Duartion])

 

or

 

calculate(Average(Query1[Call Duartion]), filter(allselected(Query1), Query1[dispatcher] = max(Query1[dispatcher]) ))

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @hadasim,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@hadasim , In case you need a measure that is average

 

Average(Query1[Call Duartion])

 

or

 

calculate(Average(Query1[Call Duartion]), filter(allselected(Query1), Query1[dispatcher] = max(Query1[dispatcher]) ))

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors