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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Creating an average

Hi,

 

I have a list of percentages for people in diofferent departments like below:

Screen Shot 2019-07-18 at 12.33.33.png

 and I would like to build a measure to find the average Billing target % for each department:

 

for example for the table above I am looking for:-

 

 

sum of billing target % (627%)

/ number of people in the client dept (7 people)

= 89.57%

 

 

I have tried doing this in a measure but cannot seem to get this to work?

 

Can anybody help with the best way to do this?   

 

Many thanks,

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi  @Anonymous ,

For your requirement, please refer to this measure.

Measure =
CALCULATE (
    AVERAGE ( 'Table 2'[Billing Target] ),
    ALLEXCEPT ( 'Table 2', 'Table 2'[Department], 'Table 2'[Name] )
)

Here is the output.

Capture.PNG

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi  @Anonymous ,

For your requirement, please refer to this measure.

Measure =
CALCULATE (
    AVERAGE ( 'Table 2'[Billing Target] ),
    ALLEXCEPT ( 'Table 2', 'Table 2'[Department], 'Table 2'[Name] )
)

Here is the output.

Capture.PNG

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

 

Please try with below DAX code.

 

Average % = AVERAGEX(FILTER(Table1,Table1[Department]="Client"),Table1[Billing Target])
Department.png

 

HotChilli
Community Champion
Community Champion

The simplest way is to drag 'Department' on to a table.

Then drag 'Billing Target' next to it and choose 'Average' in the dropdown on the Values field well.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.