Hello,
I'm a total newbie to Crystal Reports, and have tried without success to create a report that will display the total number rows returned by an SQL query and then the percentage of each of the field values.
Here's an example:
An SQL Server table is called HotelCards, and in that table are several fields that contain three possible values. For ease of understanding, let's say the values are 'a','b', and 'c'. Now, I want the report to list the total number of rows that contain a 'not null' value, say 100 and then the percentage of those that are 'a', 'b', etc... So if 35 of the 100 rows that are returned contain the value 'a', and ten rows contain 'b', then the report will say a - 35%, b - 10%, etc. Do you get it?
I have tried using formulas and SQL Expressions, but I don't understand them enough to know which (if either) is the appropriate one to be using. Can some one steer me in the right direction? Thanks in advance
Faded
I'm a total newbie to Crystal Reports, and have tried without success to create a report that will display the total number rows returned by an SQL query and then the percentage of each of the field values.
Here's an example:
An SQL Server table is called HotelCards, and in that table are several fields that contain three possible values. For ease of understanding, let's say the values are 'a','b', and 'c'. Now, I want the report to list the total number of rows that contain a 'not null' value, say 100 and then the percentage of those that are 'a', 'b', etc... So if 35 of the 100 rows that are returned contain the value 'a', and ten rows contain 'b', then the report will say a - 35%, b - 10%, etc. Do you get it?
I have tried using formulas and SQL Expressions, but I don't understand them enough to know which (if either) is the appropriate one to be using. Can some one steer me in the right direction? Thanks in advance
Faded