Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
FelixWongP
New Member

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?

 

Captura.JPG

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

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

vcgaomsft_0-1708582275772.png

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

View solution in original post

2 REPLIES 2
v-cgao-msft
Community Support
Community Support

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

vcgaomsft_0-1708582275772.png

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

lbendlin
Super User
Super User

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...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.