Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Work around Calculated Field limitation

I have a pivottable I want to publish on the web. But the
web components does not support calculated fields.
Unfortunately, the calculated fields in my pivottable are
the heart of the report. So now I'm trying to think of a
way around it. Here's the scenario:

The data for the pivottable is like this:

Instance Name Pass Fail
123 Joe 1 0
124 John 1 0
125 Bill 0 1
126 Joe 1 0
127 Bill 1 0
128 Lucy 0 1

The pivottable pulls in the Name in the Row area and then
Sums the Pass and Fail fields in the Data area. I include
the Instance field in the range for the pivottable so
users can drill down and see those numbers. So the
pivottable looks like:

Name Pass Fail
Joe 2 0
John 1 0
Bill 1 1
Lucy 0 1

I add a calculated field that displays the percentage of
Pass for each Name:

Name Pass Fail % Pass
Joe 2 0 100%
John 1 0 100%
Bill 1 1 50%
Lucy 0 1 0%

Of course I can't do this because the web version will not
support that calculated field. Does anyone know another
way to get the result? I can't put the formula in the
database query because there are no aggregate functions
there (because each record is made unique by the Instance
field). I tried doing the formula on each record and then
using the pivottable to average those percentages, but the
results are not accurate.

Any ideas?

tod




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Work around Calculated Field limitation

Dump the Pass field into the data area 3 times.
Then set the field options as :Sum/Count/Average
Name the fields Passed/Taken/Success%

that should solve it.



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Tod" wrote:

Instance Name Pass Fail
123 Joe 1 0
124 John 1 0
125 Bill 0 1
126 Joe 1 0
127 Bill 1 0
128 Lucy 0 1


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table, IF function, calculated item versus calculated field NomadPurple Excel Discussion (Misc queries) 1 March 9th 10 03:17 PM
I want to create a calculated item based on a calculated field Stijn Excel Discussion (Misc queries) 1 August 25th 08 05:30 PM
Calculated Field and Calculated Item in Pivot Table Fred Smith Excel Discussion (Misc queries) 0 March 4th 07 08:15 PM
PivotTable:Using a calculated field result in another calculated f Alice Excel Worksheet Functions 0 June 8th 06 05:21 PM
pivot table formulas for calculated field or calculated item Vicky Excel Discussion (Misc queries) 3 June 6th 06 05:06 AM


All times are GMT +1. The time now is 08:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"