March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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?
Solved! Go to Solution.
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
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
As long as your users understand why the value is what it is you can manipulate the totals any which way you want.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |