egiannaros
New Member
- Joined
- Mar 14, 2008
- Messages
- 42
I am trying to write a Make Table query that pulls in all the fields from another table but multiplies two meaures to create a new measure.
Below is the table I am using for this query. I want to multiply "Average NB Written Premium" by "Ultimate NB Policy Count." I know I have to use the build feature in Query Design view but I havn't had any luck yet. Any ideas?
<TABLE cellSpacing=0 bgColor=#ffffff border=1><CAPTION>zAverage Premium 2 (YE Numbers)</CAPTION><THEAD><TR><TH borderColor=#000000 bgColor=#c0c0c0>Cube</TH><TH borderColor=#000000 bgColor=#c0c0c0>Version</TH><TH borderColor=#000000 bgColor=#c0c0c0>Source</TH><TH borderColor=#000000 bgColor=#c0c0c0>Term</TH><TH borderColor=#000000 bgColor=#c0c0c0>Channel</TH><TH borderColor=#000000 bgColor=#c0c0c0>Rate_Level</TH><TH borderColor=#000000 bgColor=#c0c0c0>LOB</TH><TH borderColor=#000000 bgColor=#c0c0c0>Region</TH><TH borderColor=#000000 bgColor=#c0c0c0>Measures</TH><TH borderColor=#000000 bgColor=#c0c0c0>Period</TH><TH borderColor=#000000 bgColor=#c0c0c0>SumOfValue</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#c0c0c0>sfm_prod:Premiums</TD><TD borderColor=#c0c0c0>Scenario Plan</TD><TD borderColor=#c0c0c0>Reported</TD><TD borderColor=#c0c0c0>12 month</TD><TD borderColor=#c0c0c0>Agt Spon</TD><TD borderColor=#c0c0c0>Home Legacy</TD><TD borderColor=#c0c0c0>Homesaver</TD><TD borderColor=#c0c0c0>AL.Birmingham</TD><TD borderColor=#c0c0c0>Average NB Written Premium</TD><TD borderColor=#c0c0c0>2010</TD><TD borderColor=#c0c0c0 align=right>1410.20250404491</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>sfm_prod:Premiums</TD><TD borderColor=#c0c0c0>Scenario Plan</TD><TD borderColor=#c0c0c0>Reported</TD><TD borderColor=#c0c0c0>12 month</TD><TD borderColor=#c0c0c0>Agt Spon</TD><TD borderColor=#c0c0c0>Home Legacy</TD><TD borderColor=#c0c0c0>Homesaver</TD><TD borderColor=#c0c0c0>AL.Birmingham</TD><TD borderColor=#c0c0c0>Average NB Written Premium</TD><TD borderColor=#c0c0c0>2011</TD><TD borderColor=#c0c0c0 align=right>1785.55261301715</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>sfm_prod:Premiums</TD><TD borderColor=#c0c0c0>Scenario Plan</TD><TD borderColor=#c0c0c0>Reported</TD><TD borderColor=#c0c0c0>12 month</TD><TD borderColor=#c0c0c0>Agt Spon</TD><TD borderColor=#c0c0c0>Home Legacy</TD><TD borderColor=#c0c0c0>Homesaver</TD><TD borderColor=#c0c0c0>AL.Birmingham</TD><TD borderColor=#c0c0c0>Ultimate NB Policy Count</TD><TD borderColor=#c0c0c0>2010</TD><TD borderColor=#c0c0c0 align=right>2.14660729808804</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>sfm_prod:Premiums</TD><TD borderColor=#c0c0c0>Scenario Plan</TD><TD borderColor=#c0c0c0>Reported</TD><TD borderColor=#c0c0c0>12 month</TD><TD borderColor=#c0c0c0>Agt Spon</TD><TD borderColor=#c0c0c0>Home Legacy</TD><TD borderColor=#c0c0c0>Homesaver</TD><TD borderColor=#c0c0c0>AL.Birmingham</TD><TD borderColor=#c0c0c0>Ultimate NB Policy Count</TD><TD borderColor=#c0c0c0>2011</TD><TD borderColor=#c0c0c0 align=right>2.06602104153363</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
I am using MS Access 2003.
Thanks in advance for any help. It is greatly appreciated!
Below is the table I am using for this query. I want to multiply "Average NB Written Premium" by "Ultimate NB Policy Count." I know I have to use the build feature in Query Design view but I havn't had any luck yet. Any ideas?
<TABLE cellSpacing=0 bgColor=#ffffff border=1><CAPTION>zAverage Premium 2 (YE Numbers)</CAPTION><THEAD><TR><TH borderColor=#000000 bgColor=#c0c0c0>Cube</TH><TH borderColor=#000000 bgColor=#c0c0c0>Version</TH><TH borderColor=#000000 bgColor=#c0c0c0>Source</TH><TH borderColor=#000000 bgColor=#c0c0c0>Term</TH><TH borderColor=#000000 bgColor=#c0c0c0>Channel</TH><TH borderColor=#000000 bgColor=#c0c0c0>Rate_Level</TH><TH borderColor=#000000 bgColor=#c0c0c0>LOB</TH><TH borderColor=#000000 bgColor=#c0c0c0>Region</TH><TH borderColor=#000000 bgColor=#c0c0c0>Measures</TH><TH borderColor=#000000 bgColor=#c0c0c0>Period</TH><TH borderColor=#000000 bgColor=#c0c0c0>SumOfValue</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#c0c0c0>sfm_prod:Premiums</TD><TD borderColor=#c0c0c0>Scenario Plan</TD><TD borderColor=#c0c0c0>Reported</TD><TD borderColor=#c0c0c0>12 month</TD><TD borderColor=#c0c0c0>Agt Spon</TD><TD borderColor=#c0c0c0>Home Legacy</TD><TD borderColor=#c0c0c0>Homesaver</TD><TD borderColor=#c0c0c0>AL.Birmingham</TD><TD borderColor=#c0c0c0>Average NB Written Premium</TD><TD borderColor=#c0c0c0>2010</TD><TD borderColor=#c0c0c0 align=right>1410.20250404491</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>sfm_prod:Premiums</TD><TD borderColor=#c0c0c0>Scenario Plan</TD><TD borderColor=#c0c0c0>Reported</TD><TD borderColor=#c0c0c0>12 month</TD><TD borderColor=#c0c0c0>Agt Spon</TD><TD borderColor=#c0c0c0>Home Legacy</TD><TD borderColor=#c0c0c0>Homesaver</TD><TD borderColor=#c0c0c0>AL.Birmingham</TD><TD borderColor=#c0c0c0>Average NB Written Premium</TD><TD borderColor=#c0c0c0>2011</TD><TD borderColor=#c0c0c0 align=right>1785.55261301715</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>sfm_prod:Premiums</TD><TD borderColor=#c0c0c0>Scenario Plan</TD><TD borderColor=#c0c0c0>Reported</TD><TD borderColor=#c0c0c0>12 month</TD><TD borderColor=#c0c0c0>Agt Spon</TD><TD borderColor=#c0c0c0>Home Legacy</TD><TD borderColor=#c0c0c0>Homesaver</TD><TD borderColor=#c0c0c0>AL.Birmingham</TD><TD borderColor=#c0c0c0>Ultimate NB Policy Count</TD><TD borderColor=#c0c0c0>2010</TD><TD borderColor=#c0c0c0 align=right>2.14660729808804</TD></TR><TR vAlign=top><TD borderColor=#c0c0c0>sfm_prod:Premiums</TD><TD borderColor=#c0c0c0>Scenario Plan</TD><TD borderColor=#c0c0c0>Reported</TD><TD borderColor=#c0c0c0>12 month</TD><TD borderColor=#c0c0c0>Agt Spon</TD><TD borderColor=#c0c0c0>Home Legacy</TD><TD borderColor=#c0c0c0>Homesaver</TD><TD borderColor=#c0c0c0>AL.Birmingham</TD><TD borderColor=#c0c0c0>Ultimate NB Policy Count</TD><TD borderColor=#c0c0c0>2011</TD><TD borderColor=#c0c0c0 align=right>2.06602104153363</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
I am using MS Access 2003.
Thanks in advance for any help. It is greatly appreciated!