Forum Discussion
Change specific matrix total visualization
- Anonymous2 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 _resultBest Regards,
Gao
Community Support TeamIf 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
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