The Show Top/Bottom seems to be a feature of OWC 11, is necessary to add
custom code in order to avoid Show Bottom take null rows into account? Does
not pivot table solve this correctly?
Using OWC Toolkit/New OWC Features/Pivot Table List Demonstration/TopN
Bottom N Filtering.
Here the example: Put "Country" and "Customers_CompanyName" dimensions in
Rows Area; put "Sales" measure in Data Area;
As you can see "Argentina" has more than two members with value (exactly 3).
Making a Bottom 20 by "Customers_CompanyName" dimension, with de Display
Empty Rows checked, you can see 20 members with or without value. Also if
you make a bottom 2 in the same dimension, it returns the last 2 members (in
this case null values).
But if you uncheck "Display Empty Rows" (Pivot Table must show just Rows
with some value), if you show Bottom 2 Pivot Table doesn't show me any row
for Argentina. That's because the Bottom feature is showing the last 2
elements without taking account if those members must be shown (because
their rows has empty values).
I think it must show me the Bottom elements of rows that match the Display
Empty Rows selection (just the ones that have any value).
LucasC
Wei-Dong Xu said:
Hi Lucas,
Thank you for posting in MSDN managed newsgroup!
I'd suggest you may test the second sample of pivottable from OWC toolkit
for this issue. Please select the "New OWC features" in the left panel of
owc tool kit UI, click "PivotTable List Demonstration". After that, one IE
window will pop up. Select the "next" button twice. Then one Pivottable
sample appears. I test the show top and bottom in this sample. All the
result contains the correct rows with one summarization row.
For the implementation, you can check the javascript source code for this.
The source code for this sample is in the PTDemo.htm page which is
located in the directory:
%ProgramFiles%\Office Component Toolpack\Walkthroughs\Pages
In the file, there is one iStep variable which contains the step number
for customer click number on the "Next" button. The "stepNext" function
contains one swich sentence to display the corresponding sample. You will
find the sample2-related functions in the "case 2" of the swtich sentence