Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

New Calculated Column With Grouping

Hi,   Here is my data, with the column I'd like to create. I want a column that divides B by C, but when the ID is the same, returns the average of all those calculations for that partic...
  • Omega's avatar
    7 years ago

    I created % measure using the below formula: 

     

    Average (B,C) = SUM(Table1[B])/SUM(Table1[C])

    For the new measure, try using the below formula: 

     

    New Measure = SUMX(ALLEXCEPT(Table1,Table1[ID]),[Average (B,C)])/CALCULATE(COUNTROWS(Table1),ALLEXCEPT(Table1,Table1[ID]))