Solved

Crystal Crosstab formula

Posted on 2012-12-26
4
411 Views
Last Modified: 2012-12-26
I have a formula field that qualifies each transaction(record) with or without VS.
I would like to have a crosstab that has two columns that shows the average of each category by customer. Then a column that displays the difference.

Is this doable?    The cross tab is attached.  

Thanks!
0
Comment
Question by:evend
  • 2
4 Comments
 
LVL 14

Expert Comment

by:LinInDenver
ID: 38721434
I don't see an attachment, but this should be possible. I would create 2 formulas, one for records containing 'VS' and those that don't.

//Counts if they have VS in them
IF {table.field} like '*VS*' then 1 else 0


//Counts if they don't have VS in them
IF {table.field} like '*VS*' then 0 else 1

These two formulas would show a count of how many records contain VS. If you have an actual numeric field value you want represented, replace the 1s above with {table.field} containing the number you are after.

Base your cross tab on these two formulas.

To find the different, you would need to look into calculated members. These are fields you can add into cross tabs, but can be a little tricky.
0
 

Author Comment

by:evend
ID: 38721668
I have this formula to qualify  each transaction\record.  Do you have another means to establish the difference.  I want to get the difference between the average daily sales.
I can get the average daily sales by category using groups and summaries.  I just can not seem to do the math between groups?  

If {Vend_Visits.visit_DateTime} > {non_vending_equipment.in_service_date} Then
   "With VendScreen"
Else
   "Without VendScreen"

Here was the attachment.
Sample-Crosstab--.pdf
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 38722268
What differences are you trying to calculate?

If it is between WIth and Without Vend Screen use this formula

If {Vend_Visits.visit_DateTime} > {non_vending_equipment.in_service_date} Then
   {AmountField}
Else
   -{AmountField}

Reverse the - if you want the other difference

mlmcc
0
 

Author Closing Comment

by:evend
ID: 38722271
Thanks!  Worked.
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

Title # Comments Views Activity
Pictures In Crystal 10 41
Crystal Reports remove alpha characters only 5 46
Crystal Report for VS2013 17 79
Date is within the current week in Crystal Reports 2 47
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 is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

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

26 Experts available now in Live!

Get 1:1 Help Now