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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Atif
Resolver I
Resolver I

Average

The columns that I have as raw data are (a) KPIs, (b) Indicator, (c) Weightage, (d) Past Performance, (e) Target, (f) Actual Result, (g) Assessee, and (h) Assessor. The different tables are later clubbed in “Table All” within Power BI with additional columns like (i) Age Bracket, (ii) Designation, (iii) Department, (iv) Gender, (v) Job Cadre, and (vi) Region.

 

A new column is used to calculate “Score”.

Score = IF('All'[Indicator]="Positive",'All'[Actual]/'All'[Target]*'All'[Weightage]*100, 'All'[Past Performance]/'All'[Target]*'All'[Weightage]*100)

 

I have used a separate table for my measures.

 

I need average score of each KPI for which i 

Average Score = AVERAGE('All'[Score])

 

In order to get the average of all employees as a sum I have tried a couple of measures, but both aren’t working.

 

Sum of Average = AVERAGEX(VALUES('All'[Assessee]), [Average Score])

 

Weighted Score = AVERAGEX(DISTINCT(SELECTCOLUMNS('All', "Status", 'All'[Status], "Average Score", [Average Score])), [Average Score])

 

Most importantly, KPIs are appearing with exact average score irrespective of the slicers being used.

 

Below is the snapshot of the report.Average.png

2 ACCEPTED SOLUTIONS
Iamnvt
Continued Contributor
Continued Contributor

oh, sorry, I forgot something.

how about this:

Sum of Average = AVERAGEX(VALUES('All'[Assessee]), CALCULATE(SUM('All'[Score])))

View solution in original post

Really appreciated @lamnvt. 

 

Your measure is much simpler and most importantly is giving the desired result.

 

Just minutes ago I got the solution by using the following measure.

 

Average =
VAR AvgScore = AVERAGE('All'[Score])

RETURN
IF(HASONEVALUE('All'[KPIs]),
    AvgScore,
        SUMX(VALUES('All'[KPIs]), AvgScore))

View solution in original post

4 REPLIES 4
Iamnvt
Continued Contributor
Continued Contributor

hi,

 

you can try the following:

Sum of Average = AVERAGEX(VALUES('All'[Assessee]), 'All'[Score])

 

Hi there @Iamnvt ,

 

Sum of Average = AVERAGEX(VALUES('All'[Assessee]), 'All'[Score]) can't be done.

 

The syntax is "table" and then "expression".

Iamnvt
Continued Contributor
Continued Contributor

oh, sorry, I forgot something.

how about this:

Sum of Average = AVERAGEX(VALUES('All'[Assessee]), CALCULATE(SUM('All'[Score])))

Really appreciated @lamnvt. 

 

Your measure is much simpler and most importantly is giving the desired result.

 

Just minutes ago I got the solution by using the following measure.

 

Average =
VAR AvgScore = AVERAGE('All'[Score])

RETURN
IF(HASONEVALUE('All'[KPIs]),
    AvgScore,
        SUMX(VALUES('All'[KPIs]), AvgScore))

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.