Calculate PivotTable Percentages Using a Fixed Employee Total in Excel
Question details
Calculate each PivotTable row's first-login count as a percentage of a fixed total employee population.

- 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.
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.
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.
Select the first-login source data, choose Insert > PivotTable, and select Add this data to the Data Model before creating the PivotTable.
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.
Set the measure's number format to Percentage, choose OK, and drag First Login Percentage into the PivotTable's Values area.
Compare a row with 14 first logins against the fixed total: 14 divided by 646 is approximately 2.17%.

Divide PivotTable counts by a fixed worksheet cell
Use a worksheet formula when you do not need the percentage inside the PivotTable or cannot use Power Pivot.
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. Open the workbook: In WPS Spreadsheets, choose Open and select the workbook containing your PivotTable counts.
- 2. Enter the fixed total: Enter the employee total, such as 646, in a cell outside the PivotTable, such as H1.
- 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. Format the results: Select the formula cells and choose Home > Percent Style. Check the formulas after a PivotTable refresh or layout change.

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.




