Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Cross-Tabs That Summarize Shown Data? Post Reply Post New Topic
Author Message
acidraine
Newbie
Newbie


Joined: 16 Jan 2012
Online Status: Offline
Posts: 6
Quote acidraine Replybullet Topic: Cross-Tabs That Summarize Shown Data?
    Posted: 13 Feb 2012 at 10:06am

I hope this is the right place to post this question.

Is there anyway to create a cross-tab using the data/lines that are being showed in the preview section and NOT all of the detail in the report? I have a crystal report that has one grouping for transaction ID. So all of my data will be summarized and displayed as one line for each transaction ID. When I export to Excel, I get the data I want. However, I want to pull 13 months worth of data from Crystal. Pulling all the details will be too big; hence the cross-tab.
 
However, when I'm creating the cross-tab, it is summarizing the information from all the details; and not the grouped view. Is there a way to create a cross-tab utilizing just the information that is in the grouped view?
 
Thanks in advance.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Feb 2012 at 10:59am
Running Totals can be used in Crosstabs.
I think the grouping architecture that supports the running total in the body of the report must also exist in the CT.
IP IP Logged
acidraine
Newbie
Newbie


Joined: 16 Jan 2012
Online Status: Offline
Posts: 6
Quote acidraine Replybullet Posted: 15 Feb 2012 at 10:41am
Running totals can be used in CrossTabs, but the only option I'm seeing for them is a sum of that running total.
 
I was able to do a distinct count off of my only grouping to produce the number I wanted in the report. So I'm making progress there. However, I want to split that distinct count number off into another grouping via a cross-tab. When I attempt to do this, I'm unable to get anything to match.
 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Feb 2012 at 10:44am
what is some sample data and how do you want it to appear in your ct?

Edited by DBlank - 15 Feb 2012 at 10:44am
IP IP Logged
acidraine
Newbie
Newbie


Joined: 16 Jan 2012
Online Status: Offline
Posts: 6
Quote acidraine Replybullet Posted: 15 Feb 2012 at 11:15am
The way the report is set up now is the following columns:
 
 
TX ID     Financial Class       Charge Amount
 
 
 
 
For the detail, I only want one TX ID represented; even though a TX ID can have multiple Financial Classes and multiple charges. So I grouped these columns by TX ID, then displayed them on the Group Footer with a Sum for the Charge Amount to tie everything out.
 
What I would like to do is to create a small 13 month cross-tab that looks like this:
 
                                             Jan 12          Dec 11           Nov 11        
 
Financial Class 1                 Sum Amt        Sum Amt         Sum Amt
                                           TX ID Count   TX ID Count    TX ID Count
 
Financial Class 2                 Sum  Amt       Sum Amt         Sum Amt
                                          TX ID Count    TX ID Count    TX ID Count
 
 
I can get the Sum Amount to distribute on the cross-tab just fine. However, the grouping of TX ID is causing issues with the count in the cross tab. The number I want to distribute is taking a Running Total  of the Distinct Count of the TX ID that evaluates on the changing of the TX ID grouping, but does not reset. That total is the correct number I want, and the number I want distributed throughout this cross-tab.
 
Hope this makes sense. I can add numbers to the visual if you would like, but I didn't know if that would cloud things further.
 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Feb 2012 at 11:30am
so your only outstanding issue at this time is in the ct you need the tx_id_count to increase month to month on each financial class row?
IP IP Logged
acidraine
Newbie
Newbie


Joined: 16 Jan 2012
Online Status: Offline
Posts: 6
Quote acidraine Replybullet Posted: 16 Feb 2012 at 4:23am
Kind of. The number I want I can obtain through the detail section. So I'll take TX ID (which is my lone grouping), do a running total as a distinct count. During the running total I'm evaluating it on the change of group (TX ID). So across all financial classes I get the correct total.
 
I want to take that one number and spread it out across their respective Financial Classes. I have 14 static financial classes, so the totals of those 14 finanical class TX ID counts should total out to the number I obtained through the detail section.
 
Once I get that tied back, I want to then simply go back 13 months and gather the same information.
 
I know it's probably easier to do this via logic in the detail section, but my issue is that there's so much data for 13 months, my Crystal will bomb out; thus having to go the route of the cross tab.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 16 Feb 2012 at 5:44am

sorry, having trouble 'seeing' your raw data and how you are trying to analyze it.

From you description I think if you used a stored proc or view (or a crystal command object) to group and deduplicate your rows might be the way to go.
 
If you can post some sample row level data (with the duplciation issue) and how you want it to look I might be able to help, but right now I still am not understanding your data well enough to give you a step by step solution.
Anyone else seeing a solution here?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.