Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Create measure using average

Hi there,

 

I am trying to create a measure that averages a measure I currently use.


Existing

SUM('LH_Warranty'[Rebate Value]) + [PartsMarginExVAT]
 
How would I get the average of the above?
  • Anonymous  does this work?

    measure =
    AVERAGEX ( ADDCOLUMNS ( tbl, "test", [existingMeasure] ), [test] )
    

7 Replies

  • smpa01's avatar
    smpa01
    Community Champion

    Anonymous  does this work?

    measure =
    AVERAGEX ( ADDCOLUMNS ( tbl, "test", [existingMeasure] ), [test] )
    
    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi smpa01  I've tried but returns blanks

      AVERAGEX(ADDCOLUMNS('Measures (2)',"Margin Average",[Total Margin]), [Margin Average])

       

      • smpa01's avatar
        smpa01
        Community Champion

        Anonymous  what is 

        'Measures (2)'
    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi smpa01  I've tried but returns blanks

      AVERAGEX(ADDCOLUMNS('Measures (2)',"Margin Average",[Total Margin]), [Margin Average])

       

  • vanessafvg's avatar
    vanessafvg
    Community Champion

     

    avg of measure =
    AVERAGEX (
    LH_Warranty,
    LH_Warranty[Rebate Value] + LH_Warranty[other column Value]
    )