473,804 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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},{l og.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},{l og.stock})/{sector.sector_ count}) /
maximum(Count ({log.LOGID},{l og.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 5282

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

Similar topics

3
23637
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 groups, the groups are childs of the first group. i.e. Group 1 Group 2
2
3871
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
6371
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
28604
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
6919
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
8456
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 using crystal reports 9 and vb.net and we're using the crystalrepotViewer to show our reports. But every time we open a report the connection to or sql server remains, so if I open 5 forms with the report viewer I've got 5 sleeping connections in...
3
8451
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 a single time, where each group is running in a separate thread. I have noticed mixed behavior when running multiple groups at one time (in separate threads). I have received the following two messages logged as errors. - A Crystal Reports...
0
917
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 SVC 4/2/2006 12 COS
1
4746
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 records at record level and at group level. For example, I may select all bill lines with a receipt date within a certain date range. This results in a list of bill lines within that date range. The records are grouped and values on the records...
0
9715
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10352
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10354
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9175
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.