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
Anonymous
Not applicable

New measure for average

Hi all,

I've got a table that shows

Trainer name, trainee names, expected progress

 

I'm trying to create a new measure to show the average expected progress for all trainees with each trainer, but am struggling on the syntax. Any help would be appreciated.

 

Dave J

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

 

Based on your comment, I came up with the following:

 

Avg =
CALCULATE(
AVERAGE(DetailsSheet[ExpectedProgress])
)
 
I created some sample data I felt may match your scenario; I used two trainers & two trainees. Each trainee had three training events (two events from the same trainer). 
 
I'm attaching printscreens of the data in excel, the PBI file, & some screenshots. 
The training expected progress detailsThe training expected progress details

 

Pivot showing avg of trainer1Pivot showing avg of trainer1

 

Pivot showing avg of trainer2Pivot showing avg of trainer2

PBI file

Excel file

 

Put these on my Google Drive; haven't used this in a while so let me know if links don't work.

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Anonymous 

 

Based on your comment, I came up with the following:

 

Avg =
CALCULATE(
AVERAGE(DetailsSheet[ExpectedProgress])
)
 
I created some sample data I felt may match your scenario; I used two trainers & two trainees. Each trainee had three training events (two events from the same trainer). 
 
I'm attaching printscreens of the data in excel, the PBI file, & some screenshots. 
The training expected progress detailsThe training expected progress details

 

Pivot showing avg of trainer1Pivot showing avg of trainer1

 

Pivot showing avg of trainer2Pivot showing avg of trainer2

PBI file

Excel file

 

Put these on my Google Drive; haven't used this in a while so let me know if links don't work.

 

Anonymous
Not applicable

excellent, thanks. I had an error in my syntax, so got nonsensical outcomes. Yours worked perfectly.

cheers

Dave J

HotChilli
Super User
Super User

Help us out.  Post some data and your desired outcome please.

Anonymous
Not applicable

An example of the data below. I'd like to create a measure to say eg

Trainer   Expected Progress    Actual Progress

A                   57.1                          62.8

B                   65                             59.8

 

where the numbers are the average of all trainees with the trainer (ie total of all actual progress/number of trainees).

Unique NumberTraineeTitleActual ProgressExpected ProgressTrainer
8148685788Alan  LGV Driver Standard99.391.2Paul Rowden
6579783779BarbaraLGV Driver Standard5090.4Richard Hicks-Williams
5252972663CharlesSupply Chain Warehouse Operative Standard9.134.3Paul Karalius
7384299356DavidSupply Chain Warehouse Operative Standard234.3Paul Karalius
3918674052EdwardLGV Driver Standard29.750.6Stuart Hulme
3315247578FrancesLGV Driver Standard2959.4Neil Ridgway
5389836617GailSupply Chain Operator Standard100100Chris Moore
4237732303HelenLGV Driver Standard98.8100Chris Takle
3210139201IanTeam Leader Supervisor Standard79.7100Nichola Dempster
6924554228JohnLGV Driver Standard52.593.1Phil Greenhalgh
5754240448KeeleyLGV Driver Standard49.399.9Ross Wann
8632404856MickTeam Leader Supervisor Standard64.865.6Paula Woolmore
4385683912NoelLGV Driver Standard99.1100Darrel Thompson
9815019936OliveOperations Departmental Manager Standard257.6Dave Laing
1347667678PenelopeTeam Leader Supervisor Standard16.232.7Gail Cooper
7171066524QueenieTeam Leader Supervisor Standard36.656.3Paula Woolmore
3635306788RichardLGV Driver Standard21.771.7Phil Greenhalgh
3053710241StephenPearson BTEC Level 3 Diploma in Management (QCF)100100Nichola Dempster
6834524281ThomasTeam Leader Supervisor Standard81.9100Gail Cooper

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.