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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Vaishnav
Regular Visitor

get total as division of Other 2 column's Total values in the table view in power bi

Hi,
I have a Table visual in power  BI with below mentioned columns.

I want "MTT  Total" value as ... Division of  "Friction Total" and "Count Total"...…(Friction Total /Count Total )....

724034 / 7139=101.41

but I am  getting it as 101.46

could you please guide to get it as  724034 / 7139=101.41....in the same table as "MTT Total"..

please refer below mentioned table

 

TypeCountFriction MTT
P1 - Critical1030.2999999999999973.03
P2 - High9012243.13953488372136.03488372093022
P3 - Medium66259000.6192733017489.12480252764612
P4 - Low1405136807.932657494697.37219406227372
xyz4972515952103.77152051488335
Total7139724034101.46
1 ACCEPTED SOLUTION

Hi, Thanks for you support.

Finally I could fix the issue.

Posting the calculation...as it might help someone in future...

--correct the Total with sumx(summarize...) and use it in the division 

CorrectTotal =

        VAR a = SUMMARIZE (
            Table,
      Table[Type],


            "Revised", CALCULATE( Table[Friction], VALUES( Table[Type]) )
        )
        RETURN SUMX( a, [Revised] )

_division =
var x=Table[CorrectTotal]
var y=DISTINCTCOUNT(Table[number])
return DIVIDE(x,y)

View solution in original post

5 REPLIES 5
v-hashadapu
Community Support
Community Support

Hi @Vaishnav , Thank you for reaching out to the Microsoft Community Forum.

 

Please see the attached .PBIX file for your reference.

 

Note: 724034 / 7139=101.419, so it will be rounded to 101.42.

 

If this helped solve the issue, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details, always happy to help.
Thank you.


Hi @v-hashadapu 
I need  that value as part of the table...at "Total" field under "MTT"  Column ( Highlighted in Red)

rajendraongole1
Super User
Super User

Hi @Vaishnav  - You need to create a new measure for MTT Total that does the division using total values, not the summed-up MTT values.

MTT Total =
DIVIDE(
    SUM('Test'[Friction]),
    SUM('Test'[Count])
)

 

 

rajendraongole1_0-1744349297035.png

 

 

Hope this helps and works





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi, Thanks for you support.

Finally I could fix the issue.

Posting the calculation...as it might help someone in future...

--correct the Total with sumx(summarize...) and use it in the division 

CorrectTotal =

        VAR a = SUMMARIZE (
            Table,
      Table[Type],


            "Revised", CALCULATE( Table[Friction], VALUES( Table[Type]) )
        )
        RETURN SUMX( a, [Revised] )

_division =
var x=Table[CorrectTotal]
var y=DISTINCTCOUNT(Table[number])
return DIVIDE(x,y)


Hi @rajendraongole1 
I need  that value as part of the table...at  "Total" field under "MTT"  Column ( Highlighted in Red)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.