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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
chotu27
Post Patron
Post Patron

Grouping row percentages in matrix visual

Hi, all

I want to calculate each row percentage by total values as below.  

Total Employees =  It sis calculated as Count( employee ID)

Row total % =  How should i calculate to show each row percentage  like for one president total employees is 106 and exceeds expectation is 10 = 10/106*100 is the needed calculation.

 

Note: Here I calculated Tot employees by using Count Employee ID

 

Row total.PNG

4 REPLIES 4
v-yulgu-msft
Employee
Employee

Hi @chotu27,

 

Suppose your table structure is similar to below

1.PNG

 

Please create measures as:

 

Total Employee = COUNT('Employee Table'[Employee])
Row Total % =
[Total Employee]
    / CALCULATE (
        [Total Employee],
        ALLEXCEPT ( 'Employee Table', 'Employee Table'[Department] )
    )
2.PNG
If I have something misunderstood, please provide detailed data so that I can test for you.
Best regards,
Yuliana Gu
Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yulgu-msft

Hi you have understood in right path  but in my dataset there repeated managers for each department then how can we handle this situation. In your output you have unique manager pof M1,M2,M3.......... PLEASE CHECK BELOW IMAGE AS OUTPUT NEEDED FOR ME.

 

PERCE.PNG

 

 

Hi @chotu27,

 

Have you worked it out? If so, would you please kindly mark the helpful reply as an answer or share your solution?

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @chotu27,

 

Measures in my original post also apply to the scenario where there existing repeated managers for each department.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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