Add a percentage column at the end of pivot table
i am trying to make an income statement using Pivot table with slicer. Everything works. I click on filter in slicer and pivot table shows me data for that specific station. But my only problem is that i want to add an extra column at the end of pivot table named percentage.
This new column should show the percentage of data in all rows when i select one station compared to all stations.
For example 1st row is fuel sales. The total fuel sales for all the stations is 179,967.50
and sales by station 01 is 12,495.71
So when i filter data with station 01, the last column should show a percentage of (12,495.71/179967.5) *100= 69.4%
Same calculation is needed for all rows which should change when i filter data with station 02,04 etc.
Is there any way?
Last edited by jamiltidi; 03-31-2022 at 02:48 AM.
Reason: update attached excel file
Re: Add a percentage column at the end of pivot table
You can do it using a couple of measures and the data model, as in the attached. If you only want the % to show for the grand total, you'll need to create a column set.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By shivaramv in forum Excel Charting & Pivots
Last Post: 11-14-2021, 04:12 PM
By zanshin777 in forum Excel Charting & Pivots
Last Post: 09-23-2015, 08:17 AM
By paula10 in forum Excel Charting & Pivots
Last Post: 02-01-2015, 07:59 AM
By Glennyboi in forum Excel Charting & Pivots
Last Post: 08-06-2012, 10:07 AM
By mm107 in forum Excel General
Last Post: 05-18-2009, 09:14 AM
By Zyphon in forum Excel General
Last Post: 02-23-2009, 10:07 AM
By Jacob in forum Excel General
Last Post: 03-08-2006, 01:10 AM
Tags for this Thread
Search Engine Friendly URLs by vBSEO 3.6.0 RC 1