Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 21st, 2005, 04:30 AM
Registered User
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calculated field total in cross-tab

I have three fields on a Crystal report cross-tab, FieldA, FieldB and
FieldC. FieldC is a formula field, dividing FieldA by FieldB. Report is organized like this:

Group1: Buyer
    Group2: Destination

        Item Month1 Month2 ...

                    FieldA FieldB FieldC

        Item1 x y x/y

        Total sum(x) sum(y) sum(x/y)

How can I get (sum(x)/sum(y)) instead of sum(x/y) in the totals section?
Any help would be greatly appreciated.

Old October 26th, 2005, 12:57 PM
Authorized User
Join Date: Dec 2004
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts

u cannot have two diff., formulas one for details and one for sumamry in crosstab. all u can do is create another cross tab with ur desired dormula and place it over the existing on and format accordingly to supress what u don't want to see in both the crosstabs.

Old November 9th, 2005, 04:49 AM
Authorized User
Join Date: Nov 2005
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to joxa83 Send a message via Yahoo to joxa83

it is possible with GridRowColumnValue and CurrentFieldValue functions and i would need some time to do that. so if u are still interested in solution let me know.

Old October 6th, 2006, 01:40 AM
Registered User
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to annacore


how can i capture the value of the last item not equal to 0 for each column in a cross-tab?

this is how the cross tab should look like:

Item Shop1 Shop2

Item Receive Issue Stock
Item0 0 0 40
Item1 0 10 30(Stock = Stock - Issue)
Item2 20 0 50(Stock = Stock + Receive)
Item3 0 0 50(takes the value of the last stock item)
GrandTotal 20(Sum of Receive) 10(Sum of Issue) 50(Value of the last stock item)

i really need help on how to display these data in a cross-tab..

the main problem is how to display the last item in Stock Grand Total Column when it is not a summary but an exact value instead.

Help needed, thanx!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Previous field /column value in cross-tab mozilago SQL Server ASP 0 March 7th, 2007 02:58 AM
how to sort cross tab.sort based on row total joxa83 Crystal Reports 7 March 2nd, 2006 09:12 AM
cross tab help drachx SQL Server 2000 3 October 24th, 2005 03:26 PM
help with cross tab kondapally Crystal Reports 0 August 25th, 2005 09:11 AM
cross tab s_a_ravi BOOK: Professional Crystal Reports for VS.NET 0 February 17th, 2005 06:49 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.