We are currently experiencing minor technical difficulties. All Design Patterns are available and search is working. We expect to have the Portal pages working again shortly.

Calculating the Production Focus score using data exports

From PegaWiki
Calculating the Production Focus score using data exports /
Revision as of 20:47, 29 October 2020 by Agraa3 (talk | contribs) (major changes)

Jump to navigation Jump to search

Curator Assigned
Request to Publish
Description Calculate production focus score using weekly/monthly data exports
Version as of 8.5
Application Workforce Intelligence
Capability/Industry Area Custom reporting

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ Please Read Below ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

Enter your content below. Use the basic wiki template that is provided to organize your content. After making your edits, add a summary comment that briefly describes your work, and then click "SAVE". To edit your content later, select the page from your "Watchlist" summary. If you can not find your article, search the design pattern title.

When your content is ready for publishing, next to the "Request to Publish" field above, type "Yes". A Curator then reviews and publishes the content, which might take up to 48 hours.

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ The above text will be removed prior to being published ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓


Workforce Intelligence compares the actual production hours accumulated by a department or team or associates to its expected hours, to calculate a production focus score.

Use case example

Clients like to combine and compare weekly or monthly aggregate data exports with additional (external) metrics generated by third party systems. For example, they would like to compare Production Focus score with Claims productivity metrics. Using the weekly or monthly aggregate data exports, they can calculate the WFI production focus score and use/compare it with additional (external) metrics.

Before you begin

It is important to download and save the weekly or monthly aggregate data export files. The file can be accessed either from the exports page (Analysis -> Exports) or by leveraging export API to download them. The clients should have access to either MS Excel or other BI tools to calculate the production focus score. The production focus score in this article is calculated using MS Excel.

Understand the terms required for production focus calculation

To calculate the production focus score, we need the following values:

  1. Pa – Actual production hours (recorded by Pega Robot Runtime)
  2. Pe – Expected production hours (calculated by Workforce Intelligence based on the expected hours and production percentage target)
  3. Production % - The percentage of time spent in production applications and websites during the expected hours or shift.

Note: The data export provides the Total Expected Hours value of a user for a given calendar day.

Sample Screenshot from the Summary Page highlighting the values required for calculation

Production focus score screenshot 1 alt.jpg

Calculate Expected production hours (Pe)

Mathematical Formula - Total Expected hours * Production % = Expected production hours (Pe)

Example -

In the above screenshot, the total expected hours is 9.5h. This value should be multiplied by production % which is set to 0.5 (by Workforce Intelligence administrator).

Expected production hours (Pe) = 9.5 * 0.5

After multiplying the two values, the expected production hours (Pe) is 4.8h

Actual production hours (Pa) can be calculated by summing the production category time of the user for a specific day.

Calculate Production Focus Score

Mathematical Formula = IF(Pa>(1.2*Pe),10,IF(Pa<Pe,(Pa/Pe)*8,10*Pa/Pe-2))

Prepare the data export file to calculate the production focus score

The following provides the steps to calculate score using the weekly data export of the user mentioned in above screenshot.

  1. Select the data and create a new pivot in a new sub-sheet.
    • Add shift_date, user_name and category fields under the Rows section of the pivot.
    • In the pivots, value column, add the following fields -
      • Sum of time_seconds field
        • This will provide the total time for a specific day, for a specific user and by different categories
        • Rename the column to Total Time (secs)
      • Max Value of expected_time_seconds field
        • The data export provides the total expected time, which is same for specific day, specific user and for every category.
        • Rename the column to Total Expected Time (secs)
  2. Store the Total Expected Time (secs) value in a new cell.
    • You can convert this value from secs to hrs. in a new cell.
  3. Calculate the Expected Production Hours (Pe) by multiplying the Total Expected Time (secs) value with production % (production % is 0.5 in this example)
    • You can convert this value from secs to hrs. in a new cell.
  4. Calculate the Actual production hours (Pa) by summing the production category time.
  5. Store the Actual Production hours (Pa) and Expected Production Hours (Pe) in new cells.
  6. Use the Production Focus Score formula to calculate the score.


The whole setup should look like this -

Production focus score screenshot 2 alt.jpg