Solved

Crosstab- need a distinct count for each row

Posted on 2014-11-24
4
119 Views
Last Modified: 2014-11-28
I have a crosstab listing each product number as row and each "selected" store as column. Summary is the # sold for each item/store.  I need to do a distinct count of the stores selling each item and put it in the Total column only.  I can do this for each column, and it works quite well.  I cannot figure out how to place this in the Total column only.  I tried an embedded summary, and this gives me a column with each line the entire count of stores.  

Is there a way to do this?
0
Comment
Question by:magneticskg
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 40463823
I don't think you can do that in the cross tab.

mlmcc
0
 
LVL 34

Expert Comment

by:James0628
ID: 40464204
If you're getting the grand totals that you want, and the problem is simply that you don't want to see the subtotals in the columns, you could try making the field as small as possible and suppressing it.

 James
0
 

Author Comment

by:magneticskg
ID: 40464775
I have tried suppressing the column, as James0628 suggested, which works for printing or viewing, but the request is to be able to export this to Excel, and then there will be an empty column in the spreadsheet, which the users do not want.
0
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 40465003
You know, I thought of the Excel thing, but you didn't mention exporting, so I was hoping that that wouldn't be an issue.

 I don't know if there's any other way to do that.  In the past, CR cross-tabs were pretty rigid, and I haven't used the newer versions that give you some additional capabilities.  The only other thing I thought of was actually putting a second cross-tab (with a single column with a total) beside the first one, but even if you could get that looking OK, including working out the spacing due to the variable number of columns in the first cross-tab (the simplest thing would probably be to put the new cross-tab on the left), then you'd probably have more issues with the export.

 James
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Crystal Reports 9 and Subreports 3 65
Conditional Text in Crystal 4 52
Crystal Reports 7 VB6  'Feature Not Enabled' Error 10 22
Crystal Reports 2013 25 36
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question