Forum Discussion

Raul's avatar
Raul
Icon for Post Patron rankPost Patron
9 years ago
Solved

Apply filter to a measure

Hello forum! I need your help for the following measure. I want to break down the total of a column by the values of the records that compose it in a matrix visualization:     For exemple: ...
  • Raul's avatar
    Raul
    9 years ago

    I found the solution. The measure must have the following formula:

     

    DESFACT =
      VAR TotalFAC = CALCULATE(SUM(Tabla1[FACT]);ALLSELECTED(Tabla1[COLABORADOR]))
      VAR TotalCOST = CALCULATE(SUM(Tabla1[COST]);ALLSELECTED(Tabla1[COLABORADOR]))
    RETURN
       (TotalFAC * SUM(Tabla1[COST]))/ TotalCOST

     

    Thanks MFelix for your help!