Forum Discussion

MSuser5's avatar
MSuser5
Helper III
3 years ago
Solved

Sub unit Total

Hi All,

 

I have data sub unit and each month and i'm created category within/ Beyond SLA level now i want to calculate Total of sub unit level

 

kindly hlep me on this.

 

Sub_UnitCountValueSub_unit Total
Export10Beyond SLA261
Export251Within SLA261
Import97Beyond SLA488
Import391Within SLA488
Process74Beyond SLA311
Process237Within SLA311
Live68Beyond SLA497
Live429Within SLA497
Create669Beyond SLA1912
Create1243Within SLA1912
Locked28Beyond SLA465
Locked437Within SLA465
Release182Beyond SLA456
Release274Within SLA456
Total4390 4390

 

i want to create like last column sub unit total.

 

Thanks,

MS

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hello MSuser5 ,

     

    Try using following DAX:

    ALLSELECTED_measure = CALCULATE([Count]),ALLSELECTED([Sub_Unit])
     
    Thanks
    If this helps, mark this as a solution!!
  • Heu MSuser5 

    Input:


    Please create the following measure

     

    Sub_unit Total = CALCULATE(SUM(TableA[Count]), ALLEXCEPT(TableA,TableA[Sub_Unit]))

    And Plot the table and you will get the expected output:

     

    If this helps you then please mark my solution as accepted so that others can find it quickly when they face the similar issue. Thank you!

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello MSuser5 ,

     

    Try using following DAX:

    ALLSELECTED_measure = CALCULATE([Count]),ALLSELECTED([Sub_Unit])
     
    Thanks
    If this helps, mark this as a solution!!
  • Dhairya's avatar
    Dhairya
    Solution Supplier

    Heu MSuser5 

    Input:


    Please create the following measure

     

    Sub_unit Total = CALCULATE(SUM(TableA[Count]), ALLEXCEPT(TableA,TableA[Sub_Unit]))

    And Plot the table and you will get the expected output:

     

    If this helps you then please mark my solution as accepted so that others can find it quickly when they face the similar issue. Thank you!