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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

% of piece for each employee

Hi,

In this table visual I have some users, grade ID and count of pieces produce.

Capture.JPG

 

I want the percentage of each grade ID for each employee.
EX: Employee #9 produces 192 pieces. He produces 35 pieces of grade ID #49 = 25,5 %.

Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Find it. I create this measure:

 

Measure = 
DIVIDE(COUNT(Table1[idPiece]);
CALCULATE(COUNTA(Table1[idPiece]);ALL(Table1[idGradeQuality])))

Thanks.

View solution in original post

3 REPLIES 3
manalla
Helper V
Helper V

Hi,

 

Create a measure to calculate % as you require, Power BI will roll up based on the group by and will calculate the % for you. Measures are calculated run time.

 

If you want the % in a different column instead of measure,  first create a SUM with group by - refer https://community.powerbi.com/t5/Desktop/Sum-of-values-by-each-category/td-p/134279

Then use this new column to calculate row level % for each grad and employee in your case.

 

Thanks

Anonymous
Not applicable

Find it. I create this measure:

 

Measure = 
DIVIDE(COUNT(Table1[idPiece]);
CALCULATE(COUNTA(Table1[idPiece]);ALL(Table1[idGradeQuality])))

Thanks.

Anonymous
Not applicable

In the table each pieces is a row. I think I can not do it with a calculated column. I look for a measure but dont't know how to do it.

Thanks for your help.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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