Solved

Crosstab- need a distinct count for each row

Posted on 2014-11-24
4
116 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now