473,499 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calculating % in a report with nothing but number data.

23 New Member
I have a dynamic report that shows income statement items trended out for the last 12 months.

If, for example, the user selects to see Gross Revenue and Cost Of Materials, these measures will be the row items and the months will be the column headers. I've hidden the detail section where each transaction is stored and display the sums of the measures in the "Measure" Group header.

This works great, but now I need to insert a row for Cost of Materials as a percent of Gross Revenue. How do I specify to divide COM by GR? Of course the data is just numbers and the computer doesn't understand that I want to divide one by the other.

I've tried the formula = sum([200808])/sum([200808]) where 200808 is the column name, but of course no matter what header or footer i place this in I just get 100%. Is there any possible way to accomplish what I need?
Sep 15 '08 #1
2 1137
NeoPa
32,557 Recognized Expert Moderator MVP
You'll need some more detailed information in the question if anyone's to know what you're working with. Metadata would be a good start.

However, your last paragraph expresses surprise that =Sum([200808])/Sum([200808]) results in 1 (or 100%). Is this a typo? This is equivalent to X/X which will always return 1.
Sep 15 '08 #2
J360
23 New Member
You'll need some more detailed information in the question if anyone's to know what you're working with. Metadata would be a good start.

However, your last paragraph expresses surprise that =Sum([200808])/Sum([200808]) results in 1 (or 100%). Is this a typo? This is equivalent to X/X which will always return 1.

Exactly, that's not a typo at all. As the report is structured, that is the only way I can work out to enter any equation.

The table the report is based on is structured as such:

Columns - Manager; Branch; Item; 200808; 200807; ... 200708;
Rows - John MS Revenue $Data; $Data;....$Data;
Costs $Data; $Data; ...$Data;

So then the report is tabular. Manager and Branch go in the Branch header. Item has it's own header that displays a sum of the data for each month. the monthly data for each transaction goes in the detail section and is hidden.

this works fine for $ amounts, but I can't think of anyway to display in the Item header Costs as a Percentage of Revenues. Ideally, I would specify the sum of Costs/ sum of Revenues, but the data in the detail section is not setup this way. I thought maybe I should create tables with the percents already done and just use SQL to pull from them. However, there are 4 relevant % measures and 6 fully dynamic fields on which to calculate the data. The number of tables would be too large to be feasible.

Any suggestions?
Sep 16 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
8790
by: Ron Adam | last post by:
Hi, I'm having fun learning Python and want to say thanks to everyone here for a great programming language. Below is my first Python program (not my first program) and I'd apreciate any...
1
2704
by: Justin Koivisto | last post by:
I am trying to create a report that displays a name of an advertising source and count of the number of times it was hit between certain date ranges. The data is split between two different...
2
7791
by: SJM | last post by:
I have a report that displays records of real estate properties. It is possible for each property to appear a number of times for various reasons. Each record however is unique. What I would like...
1
2500
by: Megan | last post by:
quick summary: i'm having problems trying to group fields in a report in order to calculate percentages. to calculate percentages, i'm comparing the results from my grouped fields to the totals....
6
3301
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
1
4282
by: Tony Williams | last post by:
I have a table with two fields, txtvalue (a number field) and txtmonth ( a date/time field). I want to create a report that shows the difference in value between the value in txtvalue in one value...
3
2178
by: Wired Hosting News | last post by:
Lets say I have 10 products in 10 different stores and every week I get a report from each store telling me how many items they have left for each of the 10 products. So each week I enter in 100...
5
3497
by: Wired Hosting News | last post by:
I tried to be breif and give a scenario so as not to be overlooked because it was soooo long. Let me give you real world. I am a manufacturer of goods and produce 11 items that are distributed...
3
2053
by: Richard Hollenbeck | last post by:
I am very sorry about the (almost) re-post, but you will see that my first question wasn't very clear; I have another question I posted this morning called, "in DAO: Run time error 3061 Too few...
0
7134
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
7012
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
7180
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
7392
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5479
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,...
0
4605
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...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.