Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pivot problem
Message
From
17/08/2011 04:40:00
Mk Sharma
Shrishti Solutions
Mumbai, India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Pivot problem
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01521161
Message ID:
01521161
Views:
90
i am using %of in pivot table, but it is showing #DIV/0! as this image.

http://www.foxite.com/uploads/df354788-9eca-4440-b868-d126c1c6e82d.jpg

how to solve this
** code for %of
oChangeField=oPivotTable.AddDataField(oPivotTable.PivotFields("netamt"), "avg_sales")
oChangeField.Calculation= 3  && xlPercentOf
oChangeField.BaseField="yearname"
oChangeField.BaseItem="(previous)"
Warm Regards,
mk.
Reply
Map
View

Click here to load this message in the networking platform