Forum Discussion

c5966's avatar
c5966
Helper I
7 years ago
Solved

Calculated field with matrix

I need some support in calculated field in matrix table. Any help is much appreciated.   I have 2 columns  CLASS_CONF and Change_class (which has 2 seperate values ClassChange and NoClassChange). ...
  • c5966's avatar
    c5966
    7 years ago

    Thank you for your help

     

    I understood how to do this, first I need to group my class confidence and then use your divide function.

     

    Accuracy = CALCULATE(divide(sum('table'[NoClassChange]), sum('table'[ClassChange])+sum('table'[NoClassChange])), fILTER(ALL('table'), 'table'[MEDTR_FRONT_VDAC_CLASS_CONF] = EARLIER('table'[MEDTR_FRONT_VDAC_CLASS_CONF])))