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
sebastianslz
Frequent Visitor

How to correctly calculate the percentage of productivity

In PowerBI I am calculating the percentage of productivity of each of the technicians who attend tickets, to calculate the productivity of each one I am using the formula "Tickets attended * 100 / Total tickets", to calculate productivity I am creating a new measure where I am executing the following formula:

Measure = DIVIDE(Tickets[Tickets Attended]*100,Tickets[Total Tickets])

The "Tickets Attended" I am obtaining based on a measure which its formula is as follows:

Tickets Attended = CALCULATE(COUNTAX(Tickets,Tickets[Status]),Tickets[Status]="Resolved" || Tickets[Estado]="Cancelled")

The only thing I am interested in having in the "Attended Tickets" are those that are in Resolved or Canceled State.


To calculate "Total Tickets" I am using the following formula in a measure, where I use the previous measure of "Tickets Attended"

Total Tickets = SUMX(VALUES(Tickets[ID Ticket]),Tickets[Tickets Attended])

To give a clearer example of what I want to do in Power Bi, I have done it in Excel as follows:

Technical 

Tickets Attended

Resolved

Canceled

% productivity

User1

41

35

6

20.8121

User2

109

100

9

55.3299

User3

47

43

4

23.8578

TOTAL

197

178

19

99.9998

 

I explain the formula to calculate the productivity of each Technician, for User1 is:

41*100/197 = 20.8121

The error I'm presenting when adding this measure to the table in Power BI is that all the values in the productivity of each technician results in 100. What would be the correct formula you should use?

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @sebastianslz 

 

You can try the following methods. [Tickets Attended] is a measure.

Measure:

Total Tickets = SUMX(ALL(Tickets),[Tickets Attended])
Measure = DIVIDE([Tickets Attended]*100,[Total Tickets])

vzhangti_0-1685327645410.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @sebastianslz 

 

You can try the following methods. [Tickets Attended] is a measure.

Measure:

Total Tickets = SUMX(ALL(Tickets),[Tickets Attended])
Measure = DIVIDE([Tickets Attended]*100,[Total Tickets])

vzhangti_0-1685327645410.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

Try this.  Simplify your Tickets attended measure to

Tickets Attended = CALCULATE(COUNTROWS(Tickets),Tickets[Status]="Resolved" || Tickets[Estado]="Cancelled")

Write this measure

All tickets attended = SUMX(VALUES(Tickets[Users]),[Tickets attended])

Now write the division measure

Meausre = divide([Tickets attended],[All tickets attended])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur 

I have tried to perform the measurements according to what it tells me but I have reached the same result, in this case the value is 1.00, annex the example I am doing in Power BI using a table, as you can visualize the productivity of all technicians is 1.00 which is incorrect.

sebastianslz_0-1684859062320.png

Are there any other changes I need to make to the extent you indicated?



Hi,

I can help only if you share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.