How to Show Percent of Total in a LibreOffice Calc Pivot Table

Keep sales amounts beside their shares and choose the right denominator. Check percent of total, row, and column against one worked example.
Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.
Quick answer
In the pivot layout, double-click the amount under Data Fields. Expand Displayed value and set Type to % of total. Calc divides each result by the grand total for that data field. To keep the original sales amounts alongside the percentages, add the amount field a second time and change only that copy.
Choose what should add up to 100%
Suppose you want to know how much of a retailer’s revenue came from online sales in the North. Use the grand total for the whole business. A regional manager asking how North customers buy needs North’s own sales as the denominator. The same four figures answer both questions.
| Region | Online | In store | All channels |
|---|---|---|---|
| North | 60 | 40 | 100 |
| South | 90 | 110 | 200 |
| Both regions | 150 | 150 | 300 |
For North online sales, % of total gives 60 ÷ 300 = 20% of all sales. % of row gives 60 ÷ 100 = 60% of North sales. % of column gives 60 ÷ 150 = 40% of online sales. Write down which question your report answers before choosing the setting.
Keep sales amounts and shares in the same report
- Click any result in the existing pivot. Choose Data → Pivot Table → Insert or Edit, or right-click the result and choose Properties. If you are starting from transactions, first build a two-way pivot table with Region in Row Fields, Channel in Column Fields and Sales in Data Fields.
- Leave the first Sales entry set to Sum and its displayed value set to Normal. Drag Sales again from Available Fields into Data Fields. Both entries should summarize the same source amounts with Sum.
- Double-click the second Sales entry inside Data Fields. Expand Displayed value, using the disclosure arrow or More if needed. Choose % of total under Type. The row, column and total choices need no base field or base item. Click OK in the field dialog and again in the layout dialog.
Check a single cell before sharing the result
Find the North online amount of 60 and its share of 20%. If the share comes out as 0.20, the calculation is correct. Format the share cells as Percentage to display 20%. If you see 6,000%, you probably applied ordinary percentage formatting to 60. Reopen the pivot data-field settings to calculate the share. If the sample shows 25% in all four groups, each group may be contributing one record. Check whether the pivot is counting transactions instead of summing sales.
A pivot filter changes which records contribute. With only North selected, its online share of the filtered grand total becomes 60 ÷ 100 = 60%. Label a filtered report with its scope so a reader knows what the percentage means. To check that the detail shares sum to 100%, add the four interior cells once. Leave out subtotal and total cells, and allow for rounding in the displayed values.
LibreOffice’s pivot data-field calculations · Calc Guide to pivot layouts and filters
Comments
Read or join the discussion.