Re: TRANSFORM statements in ADO (Excel)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks cpnet

Unfortunatly I wanted the sum of the values to divide each other which Pivot
tables did not appear to support.

My code was correct and does actually work. The only issue was - I was
importing the data into the sheet and then trying to run the ADO without
saving the sheet first. (which I forgot)

Thanks again for your help.

"cpnet" wrote:

> TRANSFORM is something that is specific to Access. I think ADO MD might
> allow you to do some pivot table-like stuff, but that's not .NET, that's
> just regular Win32.
>
> However, you say your source data is in Excel, and the result should be an
> Excel Pivot table, so I'd just stick with Excel. Without knowing your whole
> spreadsheet setup, I think you can probably do what you want by creating a
> calculated field:
>
> = Ave / Amt
>
> If you add this calculated field to your Pivot Table as a Data Field, then
> Excel will actually treat it as "Sum(Ave)/Sum(Amt)"
>
>
>
.



Relevant Pages

  • Re: Help PLEASE! Not sure what answer is: Match? Index? Other?
    ... you need what Excel calls a list. ... would contain the name Area, B1 the name Store, C1 would contain the name ... you establish a pivot table. ... type the name of the sales data range -- I suggested SalesData ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Help PLEASE! Not sure what answer is: Match? Index? Other?
    ... >>> The weekly sales will appear across columns. ... you need what Excel calls a list. ... > would contain the name Area, B1 the name Store, C1 would contain the name ... you establish a pivot table. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Help PLEASE! Not sure what answer is: Match? Index? Other?
    ... we sort by area, then by store, then by UPC ... you need what Excel calls a list. ... you establish a pivot table. ... >> Sold in the Data area, Date in the Column area, and both Area and Store ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Visual Report feature - Pivot table unable to create calculate
    ... around with other settings in Excel and just succeeded in locking up ... field of any fields to already exist in the pivot table. ... I create a pivot table using the feature in MS Project called ... and been able to add a calculated field but it is a lot more work. ...
    (microsoft.public.project)
  • Re: Help PLEASE! Not sure what answer is: Match? Index? Other?
    ... begins "The weekly sales ...", is not part of the report, but is rather part ... By putting the raw data into an Excel list structure, and basing a pivot ... Excel Sales Forecasting for Dummies, Wiley, 2005 ...
    (microsoft.public.excel.worksheet.functions)