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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
aktripathi2506
Helper IV
Helper IV

calculate average of measures

I have created a measure which calculate the efficiency per week by following formula:

1 - DIVIDE([Hour Spent],[Total available hours])

 

I have calculated week after week this, now I want the average of these values (13 week i.e. quarter 1) as a result.

 

 

weekgroupHours SpentAverage of CapacityEfficiency
1sales 2141
2sales4.5552.50.991855
3sales107120.985955
4sales10.5659.50.984079
5sales20.57340.972071
6sales25776.750.967815
7sales32622.50.948594
8sales25493.750.949367
9sales4653.250.993877
10sales11.57150.983916
11sales9.51051.250.990963
12sales6.5667.50.990262
13sales21.5627.750.965751
Total 180.5690.970.74

 

This is the table result of power bi desktop. As we can see at the bottom I am getting .74 , rather than this I am expecting the average of efficiency which should be .9788.

How can we get that value. please advise and help.

1 ACCEPTED SOLUTION
v-sihou-msft
Employee
Employee

@aktripathi2506

 

In this scenario, you should use calculated column rather than a measure. Then you just need to set the aggregate type into Average for that calculated column. See my sample below:

 

Capture23.PNG

Capture22.PNG

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Employee
Employee

@aktripathi2506

 

In this scenario, you should use calculated column rather than a measure. Then you just need to set the aggregate type into Average for that calculated column. See my sample below:

 

Capture23.PNG

Capture22.PNG

Regards,

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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