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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors