Pivot Table Issues

Calculate PivotTable Percentages Using a Fixed Employee Total in Excel

Huda QurayshiHuda Qurayshi Dec 2, 2026 869 views

Question details

Calculate each PivotTable row's first-login count as a percentage of a fixed total employee population.

Calculate PivotTable Percentages Using a Fixed Employee Total in Excel
Product
Microsoft Excel PivotTable and Power Pivot
Device & OS
not provided
Scenario
A PivotTable shows first-login counts by row, and the user wants to compare each count with a total of 646 employees.
Observed behavior
Each row should show its first-login count divided by 646, rather than a percentage calculated from that row's own total.
Before you start

Confirm the fixed employee total and check how first logins are recorded in the source data. For the Power Pivot example, each source row must represent one first login.

Solution 1Recommended

Create a Power Pivot measure with a fixed employee total

Use a DAX measure when you want the percentage to appear inside an Excel PivotTable and respond to its row filters.

The example assumes the data model has a table named Logins with one row per first login. The PivotTable's row fields must filter that table, either directly or through a relationship.

1
Add the data to the Data Model

Select the first-login source data, choose Insert > PivotTable, and select Add this data to the Data Model before creating the PivotTable.

2
Create a measure

Open Power Pivot > Measures > New Measure, select the Logins table, name the measure First Login Percentage, and enter =DIVIDE(COUNTROWS('Logins'),646). Replace Logins and 646 with your table name and fixed employee total.

3
Format and add the measure

Set the measure's number format to Percentage, choose OK, and drag First Login Percentage into the PivotTable's Values area.

4
Check a result

Compare a row with 14 first logins against the fixed total: 14 divided by 646 is approximately 2.17%.

Create a Power Pivot measure with a fixed employee total
Check the count definition: COUNTROWS counts source records, not distinct employees. If the source contains multiple records per employee, use a measure that counts the intended first-login events or distinct employees instead.
Calculate in WPS Spreadsheets

Calculate Fixed-Total Percentages in WPS Spreadsheets

Open your workbook in WPS Spreadsheets and divide each PivotTable count by an absolute reference to the employee total. Format the results as percentages to compare each row with the same population.

  1. 1. Open the workbook: In WPS Spreadsheets, choose Open and select the workbook containing your PivotTable counts.
  2. 2. Enter the fixed total: Enter the employee total, such as 646, in a cell outside the PivotTable, such as H1.
  3. 3. Divide the count: In a free cell beside the first count, enter =C5/$H$1, replacing C5 with the relevant count cell, and copy the formula down.
  4. 4. Format the results: Select the formula cells and choose Home > Percent Style. Check the formulas after a PivotTable refresh or layout change.
Calculate first-login percentages against one fixed employee totalOpen and edit Microsoft Excel XLSX and XLS filesUse familiar worksheet formulas and percentage formattingWork with a free, easy-to-use spreadsheet application
microsoft office alternative - wps office

Frequently Asked Questions

Why don't the percentages add up to 100%?

Each count is divided by the same employee total, not by the sum of the displayed rows. The percentages add to 100% only if the displayed counts collectively equal that total without overlap.

What percentage is 14 first logins out of 646 employees?

Enter =14/646 in a worksheet cell and apply percentage formatting. The result is approximately 2.17%.

How do I change the fixed employee total?

For the worksheet method, change the value in the denominator cell, such as H1. For the DAX method, edit the measure through Power Pivot > Measures and replace 646 with the new total.

Can I use a PivotTable's Show Values As percentage options instead?

Those options calculate percentages against PivotTable totals, such as a row or grand total. Use a measure or worksheet formula when the denominator must remain a separate fixed employee total.