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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.