Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

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

  • Anonymous's avatar
    Anonymous
    7 years ago

    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 details

     

    Pivot showing avg of trainer1

     

    Pivot 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.

     

4 Replies

  • HotChilli's avatar
    HotChilli
    Icon for Community Champion rankCommunity Champion

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

    • Anonymous's avatar
      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
  • Anonymous's avatar
    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 details

     

    Pivot showing avg of trainer1

     

    Pivot 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's avatar
      Anonymous
      Not applicable

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

      cheers

      Dave J