473,421 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,421 software developers and data experts.

Crystal reports - maximum group total??

I am running CR 8.5 from a (large) SQL Server db. My aim is to use
crystal enterprise so end users in our sales team can access reports on
demand for a given date range and client so I am trying to keep contact
with the database to a minimum. IE currently processign a report takes
about 10 minutes and involves manually running stored procs in sql
server to produce smaller, client specific temporary tables that CR can
easily cope with. The proposed new system won't rely on knowledge of
SQL server and will take about 10 secs to run a report.

My problem is - as part of a sector analysis for a client (say Oil &
Gas sector for BP) i need to normalise the values returned from a sum
of various fields in the summary as we can't provide the client with
'real' figures on their compatitors. So what i need to do is divide
the summary field by the maximum value for any entry in that summary.

ie

Stock Value
Bp 5
Royal Dutch 10
BG Group 2
Total 6

so for BP i need to 5/10 to give me 0.5.

In this case, the above are all grouped, and then divided by the number
of sectors the stock is associaated with (to avoid double counting).
these are then to be associated to the market cap of the stock, which
is a simple calc and irrelevant to this problem.

so in CR i have the formula applied to the each grouped stock:

Count ({log.LOGID},{log.stock})/{sector.sector_count}

this works fine, but i dont seem to be able to then divide this by the
maximum value for all stocks in that sector without returning an error
(summary / running total field could not be created)

ie (Count ({log.LOGID},{log.stock})/{sector.sector_count}) /
maximum(Count ({log.LOGID},{log.stock})/{sector.sector_count})

I can (and have in the existing process) do this in the details section
of CR via grouping the data in SQL server and linking in another
table/SP fo that data, but that involves having to run a seperate
stored proc on SQL Server for each report/sector which obviously
removes any benefit of automation, so i need to be able to run this
from a grouped summary, not the details section.

It all seems far too obvious so hopefully i am just making a small
error or not finding a simple function within CR!!

I know CR can't cope with charting 2 levels of formula within a
formula, but this only uses one so cant see how that could be the
problem.

apologies if this is long winded, thanks in advance for any help.

Matt

Jul 23 '05 #1
0 5267

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: thefirstwml | last post by:
I am using Visual Studio.NET 2002 Professional and am attempting to create a report on Crystal Reports for .NET. I know that Crystal Reports can group on anything, and when I add multiple...
2
by: windos | last post by:
Dear all, I am a new in using Crystal Report. I'm trying to add this query in CR : SELECT
2
by: Stu | last post by:
Hi there, I am trying to set up a Crystal Report with the following tables: Customer Info: -Name -Address -CustomerID Orders:
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
17
by: Peter Proost | last post by:
Hi Group, I've got an interesting problem, I don't know if this is the right group but I think so because everything I've read about it so far says it's a .net problem. Here's the problem, we're...
3
by: ian_jacobsen | last post by:
First let me start by saying that this problem is not consistently reproducible. I have a windows service that creates reports for a group of entities. This service can process multiple groups at...
0
by: bharathi228 | last post by:
hi, iam working with crystal reports.in my database table i have a columns like dtmtime,parameter_index dtmtime parameter_index status 1/2/2006 11 ...
1
by: annemariearmour | last post by:
I am using Crystal reports version 11.2 to create reports. The data source is SQL Server, and I am using views rather than reporting directly from tables. I apply selection criteria to the incoming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.