Forum Discussion

Jamey's avatar
Jamey
Icon for Helper I rankHelper I
5 years ago
Solved

How to SUM an AVERAGE Column

I have a table that can contain multiple entries with header information for the same Invoice - see example: Customer | Invoice No | Sales      | Production Order | Cost Qty XYZ Inc       12345601 ...
  • jdbuchanan71's avatar
    jdbuchanan71
    5 years ago

    Jamey 

    Sorry, I missed a context transition in my reply, try it like this.

    SUMX Average CALCULATE = SUMX ( VALUES ( 'Table'[INVOICE_ITEM] ), CALCULATE ( AVERAGE ( 'Table'[GROSS_SALES] ) ) )

    I believe that is the value you are looking for yes?