473,566 Members | 2,772 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 1143
NeoPa
32,564 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
8795
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 feedback on how I might do things differently to make it either more consice, readable, or faster. ie... are there better ways to do it in Python? It...
1
2716
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 databases: this access db, and a remote MySQL server. The MySQL tables are linked in the access db. What I have done so far is created an On Open event...
2
7809
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 to do is display the total of the number of unique properties in the report footer, not just a count of the number of records. I have experimented...
1
2504
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. first, let me say that this is a really long post. i wasn't sure how much information/ background to provide, so i thought more was better than...
6
3311
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 parameter query which is the recordsource for the report. The parameter is <=. The query returns the correct amounts upto the date entered (no need for...
1
4289
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 of txtmonth and the value of txtvalue in another value of txtmonth and the percentage increase . For example if I have the value 1000 in 30/03/03...
3
2183
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 records with a store number, item number, on hand qty, and date of report into my sales data table. My tables primary is a combo of store# & Item...
5
3509
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 to 1800 stores of a national home improvement chain store. Every week I electronicaly receive an excel spreadsheet "inventory report" with 19,800...
3
2058
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 parameters...." I have read many articles on the web about how to make a dynamic report based on a cross-tab query. But for some reason mine never...
0
7666
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...
0
7888
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. ...
0
8108
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...
0
7951
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6260
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...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
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.