bertusavius
Board Regular
- Joined
- Feb 28, 2008
- Messages
- 82
This is table A
It represents the total revenu of a certain revenue subgroup per month. this information is known.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]year[/TD]
[TD]month[/TD]
[TD]property[/TD]
[TD]value[/TD]
[/TR]
[TR]
[TD]2011[/TD]
[TD]march[/TD]
[TD]500[/TD]
[TD]99999999[/TD]
[/TR]
[TR]
[TD]2011[/TD]
[TD]april[/TD]
[TD]600[/TD]
[TD]88888888[/TD]
[/TR]
</tbody>[/TABLE]
Table B
represents a database of different kinds of revenue with properties
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]date[/TD]
[TD]property[/TD]
[TD]calculated column[/TD]
[/TR]
[TR]
[TD]1-6-2011[/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15-6-2011[/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The date column of this revenue table is related to a date table with calculated year and month names.
I'd like to evenly divide the entire revenue per month (which is know data) per row in the database of revenue.
In other words:
the calculated column should contain something like:
TableA[revenue per month]/number of records in table B of the same month, year and property
It represents the total revenu of a certain revenue subgroup per month. this information is known.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]year[/TD]
[TD]month[/TD]
[TD]property[/TD]
[TD]value[/TD]
[/TR]
[TR]
[TD]2011[/TD]
[TD]march[/TD]
[TD]500[/TD]
[TD]99999999[/TD]
[/TR]
[TR]
[TD]2011[/TD]
[TD]april[/TD]
[TD]600[/TD]
[TD]88888888[/TD]
[/TR]
</tbody>[/TABLE]
Table B
represents a database of different kinds of revenue with properties
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]date[/TD]
[TD]property[/TD]
[TD]calculated column[/TD]
[/TR]
[TR]
[TD]1-6-2011[/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15-6-2011[/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The date column of this revenue table is related to a date table with calculated year and month names.
I'd like to evenly divide the entire revenue per month (which is know data) per row in the database of revenue.
In other words:
the calculated column should contain something like:
TableA[revenue per month]/number of records in table B of the same month, year and property