Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

CountIf with Dynamic Reference

Hi! I need to calculate a column in PBI which in Excel would look like this if I were entering the formula in cell C2:   =B2/Countif(A:A,A2)   Pretty simple in Excel. I've gotten this far with th...
  • parry2k's avatar
    parry2k
    7 years ago

    Anonymous add new measure "c" with following expression and test

     

    c = DIVIDE( SUM( Table2[b] ), CALCULATE( COUNT( Table2[a] ), ALLEXCEPT( Table2, Table2[a] ) ) )