Forum Discussion

homils40's avatar
homils40
Regular Visitor
9 years ago
Solved

Showing % in Matrix

i have the below chart created in a matrix

 Staff Time Manager Time
Manager A46
Manager B55
Manager C64

however i would like to add % of staff and % of manager time to it as well(below is what i want to display). how do i do that?

 Staff Time Manager TimeStaff %Manager %
Manager A4640%60%
Manager B5550%50%
Manager C6460%40%
     
  • You can add two new measures and then add them to your matrix.

     

    Staff % = DIVIDE(
    			SUM(MGRs[Staff Time ]), 
    			CALCULATE(SUM(MGRs[Staff Time ]) + SUM(MGRs[Manager Time]), 
    			ALL(MGRs[Staff Time ])), 
    			
    			0)
    
    
    Mgr % = DIVIDE(
    			SUM(MGRs[Manager Time]), 
    			CALCULATE(SUM(MGRs[Staff Time ]) + SUM(MGRs[Manager Time]), 
    			ALL(MGRs[Manager Time])), 
    			
    			0)
  • Select the measure on the right side of the UI. Once the measure is selected, click the 'Modeling' tab to the top. From there, you can specify the field format using that 'Formatting' tab. 

7 Replies

  • CamFlawless's avatar
    CamFlawless
    Frequent Visitor

    You can add two new measures and then add them to your matrix.

     

    Staff % = DIVIDE(
    			SUM(MGRs[Staff Time ]), 
    			CALCULATE(SUM(MGRs[Staff Time ]) + SUM(MGRs[Manager Time]), 
    			ALL(MGRs[Staff Time ])), 
    			
    			0)
    
    
    Mgr % = DIVIDE(
    			SUM(MGRs[Manager Time]), 
    			CALCULATE(SUM(MGRs[Staff Time ]) + SUM(MGRs[Manager Time]), 
    			ALL(MGRs[Manager Time])), 
    			
    			0)
    • homils40's avatar
      homils40
      Regular Visitor

      its not working, is there a number i can call you at?

      • CamFlawless's avatar
        CamFlawless
        Frequent Visitor

        Perhaps you should provide more details. What does the raw, underlying data look like, what output are you getting versus what you expect? What all have you tried thus far to reach a solution?