Forum Discussion

FelixWongP's avatar
FelixWongP
Regular Visitor
2 years ago
Solved

Change specific matrix total visualization

Im trying to change one specific value from the total column of a matrix.

There are 3 row dimesions in this visual: puesto de trabajo / material / Unidad

At "unidad" level, there are totals that is OK if they are sum, but TMPH is a indicator of TMS/TMPH.
Is there any chance, i can edit just this total value from the matrix?

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi FelixWongP ,

    Please try like:

    Measure 2 = 
    VAR _cur_puesto_de_trabajo = SELECTEDVALUE('Table'[puesto de trabajo])
    VAR _material = SELECTEDVALUE('Table'[material])
    VAR _Unidad = SELECTEDVALUE('Table'[Unidad])
    VAR _cur_tms = CALCULATE([Measure], 'Table'[puesto de trabajo] = _cur_puesto_de_trabajo && 'Table'[material] = _material && 'Table'[Unidad] = "TMS")
    VAR _cur_h = CALCULATE([Measure], 'Table'[puesto de trabajo] = _cur_puesto_de_trabajo && 'Table'[material] = _material && 'Table'[Unidad] = "H")
    VAR _result = IF(_Unidad<>"TMPH",[Measure],DIVIDE(_cur_tms,_cur_h))
    RETURN
    _result

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

2 Replies