<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value in ArcGIS Solutions Questions</title>
    <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581313#M643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately this code didn't work. In the Custom BDS wizard, I copied your code into the custom calculation window and when I verified the code I rec'd the attached error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Basic license for BA which is probably why this variable isn't included in my dataset. I ran a census tract spatial overlay to grab the 2012 home owner variables from BAO. Now that I have all the 2012 home owner value variables, I've created a custom BDS layer which works great (except for the median calculation for home value). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas or suggestions? Thanks again for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Jasmine,&lt;BR /&gt;&lt;BR /&gt;Are you looking to create your own Median Home Value calculation, customize our calculation, or use our calculation unmodified?&amp;nbsp; In our dataset we use &lt;STRONG&gt;2012 Median Value of Owner Occupied Housing Units&lt;/STRONG&gt;(MEDVAL_CY) and its a standard variable in our base dataset.&lt;BR /&gt;&lt;BR /&gt;Here is the calculation directly from our 2012 dataset.&amp;nbsp; The stub names in the calculation are the same as the 2011 dataset.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;Summarization name="MEDVAL_CY" FieldName="MEDVAL_CY" dataset="2012/2017 Demographics (Esri)" aliasname="2012 Median Home Value" basetype="" SummaryType="CALC" WeightField="" category="2012 Home Value (Esri)" previewvalue="283479" longdescription="2012 Median Home Value (Esri)" usedfields="VAL0_CY,VAL50K_CY,VAL100K_CY,VAL150K_CY,VAL200K_CY,VAL250K_CY,VAL300K_CY,VAL400K_CY,VAL500K_CY,VAL750K_CY,VAL1M_CY" indexbase="167749"&amp;gt;Dim values(10)%nl% values(0) = GetValue(&amp;amp;quot;VAL0_CY&amp;amp;quot;)%nl% values(1) = GetValue(&amp;amp;quot;VAL50K_CY&amp;amp;quot;)%nl% values(2) = GetValue(&amp;amp;quot;VAL100K_CY&amp;amp;quot;)%nl% values(3) = GetValue(&amp;amp;quot;VAL150K_CY&amp;amp;quot;)%nl% values(4) = GetValue(&amp;amp;quot;VAL200K_CY&amp;amp;quot;)%nl% values(5) = GetValue(&amp;amp;quot;VAL250K_CY&amp;amp;quot;)%nl% values(6) = GetValue(&amp;amp;quot;VAL300K_CY&amp;amp;quot;)%nl% values(7) = GetValue(&amp;amp;quot;VAL400K_CY&amp;amp;quot;)%nl% values(8) = GetValue(&amp;amp;quot;VAL500K_CY&amp;amp;quot;)%nl% values(9) = GetValue(&amp;amp;quot;VAL750K_CY&amp;amp;quot;)%nl% values(10) = GetValue(&amp;amp;quot;VAL1M_CY&amp;amp;quot;)%nl% %nl% Dim rangeValues(10,1)%nl% rangeValues(0, 0) = 0%nl% rangeValues(0, 1) = 50000%nl% rangeValues(1, 0) = 50000%nl% rangeValues(1, 1) = 100000%nl% rangeValues(2, 0) = 100000%nl% rangeValues(2, 1) = 150000%nl% rangeValues(3, 0) = 150000%nl% rangeValues(3, 1) = 200000%nl% rangeValues(4, 0) = 200000%nl% rangeValues(4, 1) = 250000%nl% rangeValues(5, 0) = 250000%nl% rangeValues(5, 1) = 300000%nl% rangeValues(6, 0) = 300000%nl% rangeValues(6, 1) = 400000%nl% rangeValues(7, 0) = 400000%nl% rangeValues(7, 1) = 500000%nl% rangeValues(8, 0) = 500000%nl% rangeValues(8, 1) = 750000%nl% rangeValues(9, 0) = 750000%nl% rangeValues(9, 1) = 1000000%nl% rangeValues(10, 0) = 1000000%nl% rangeValues(10, 1) = 1000002%nl% %nl% Dim median%nl% median = CalculateMedianLinear(values, rangeValues)%nl% %nl% ReturnValue(median)&amp;lt;Defaults decimals="0" percentage="" valueType="CURRENCY" indexable="TRUE" /&amp;gt;&amp;lt;/Summarization&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jeff Hincy&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2013 19:00:10 GMT</pubDate>
    <dc:creator>JasmineP</dc:creator>
    <dc:date>2013-02-15T19:00:10Z</dc:date>
    <item>
      <title>Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581307#M637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Original User: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:polsonj@interdent.com"&gt;polsonj@interdent.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Original Date: 2013-02-13T11:09:26-0600&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a custom BDS layer from data I imported and everything is working as it should. My only problem is the aggregation of Median Home Owner Value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to create a Custom Calculation in VBScript that will aggregate the Median Home Owner Value data, similar to how Median Household Income (which is included in the original BA dataset) is aggregated. Normally, I would grab the calculation straight from Median Household Income and customize it to fit my needs, but I'm unable to view its custom calculation. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have provided the code I was trying to use. It might be completely wrong but hopefully it will give an idea of what I'm trying to do. Also, I've attached a screenshot of what I'm doing, and the VBScript error I'm receiving.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appreciate any help I can get. Thank you!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim values(11)%nl% values(0) = Round([VAL0_CY])%nl% values(1) = Round([VAL50K_CY])%nl% values(2) = Round([VAL100K_CY])%nl% values(3) = Round([VAL150K_CY])%nl% values(4) = Round([VAL200K_CY])%nl% values(5) = Round([VAL250K_CY])%nl% values(6) = Round([VAL300K_CY])%nl% values(7) = Round([VAL400K_CY])%nl% values(8) = Round([VAL500K_CY])%nl% values(9) = Round([VAL750K_CY])%nl% values(10) = Round([VAL1M_CY])%nl%%nl% Dim rangeValues(11,1)%nl% rangeValues(0, 0) = 0%nl% rangeValues(0, 1) = 50000%nl% rangeValues(1, 0) = 50000%nl% rangeValues(1, 1) = 100000%nl% rangeValues(2, 0) = 100000%nl% rangeValues(2, 1) = 150000%nl% rangeValues(3, 0) = 150000%nl% rangeValues(3, 1) = 200000%nl% rangeValues(4, 0) = 200000%nl% rangeValues(4, 1) = 250000%nl% rangeValues(5, 0) = 250000%nl% rangeValues(5, 1) = 300000%nl% rangeValues(6, 0) = 300000%nl% rangeValues(6, 1) = 400000%nl% rangeValues(7, 0) = 400000%nl% rangeValues(7, 1) = 500000%nl% rangeValues(8, 0) = 500000%nl% rangeValues(8, 1) = 750000%nl% rangeValues(9, 0) = 750000%nl% rangeValues(9, 1) = 1000000%nl% rangeValues(10, 0) = 1000000%nl% rangeValues(10, 1) = 1000002%nl% %nl% Dim median%nl% median = CalculateMedianPareto(values, rangeValues)%nl% %nl% ReturnValue(median)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 17:09:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581307#M637</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-13T17:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581308#M638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: usiel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thats a pretty advanced question let me check see if I can get someone on the data/dev team to take a look at this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason R.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 23:28:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581308#M638</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-13T23:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581309#M639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, thanks. I might be over-thinking the whole thing. When I create the Custom BDS layer, there's a "median" option for Aggregation, although I'm not sure if it's the same methodology that was used to aggregate the Median Home Owner Value variable in BA 10.0. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appreciate you checking this out for me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Jasmine,&lt;BR /&gt;&lt;BR /&gt;Thats a pretty advanced question let me check see if I can get someone on the data/dev team to take a look at this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jason R.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 23:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581309#M639</guid>
      <dc:creator>JasmineP</dc:creator>
      <dc:date>2013-02-13T23:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581310#M640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jhincy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you looking to create your own Median Home Value calculation, customize our calculation, or use our calculation unmodified?&amp;nbsp; In our dataset we use &lt;/SPAN&gt;&lt;STRONG&gt;2012 Median Value of Owner Occupied Housing Units&lt;/STRONG&gt;&lt;SPAN&gt;(MEDVAL_CY) and its a standard variable in our base dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the calculation directly from our 2012 dataset.&amp;nbsp; The stub names in the calculation are the same as the 2011 dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;Summarization name="MEDVAL_CY" FieldName="MEDVAL_CY" dataset="2012/2017 Demographics (Esri)" aliasname="2012 Median Home Value" basetype="" SummaryType="CALC" WeightField="" category="2012 Home Value (Esri)" previewvalue="283479" longdescription="2012 Median Home Value (Esri)" usedfields="VAL0_CY,VAL50K_CY,VAL100K_CY,VAL150K_CY,VAL200K_CY,VAL250K_CY,VAL300K_CY,VAL400K_CY,VAL500K_CY,VAL750K_CY,VAL1M_CY" indexbase="167749"&amp;gt;Dim values(10)%nl% values(0) = GetValue(&amp;amp;quot;VAL0_CY&amp;amp;quot;)%nl% values(1) = GetValue(&amp;amp;quot;VAL50K_CY&amp;amp;quot;)%nl% values(2) = GetValue(&amp;amp;quot;VAL100K_CY&amp;amp;quot;)%nl% values(3) = GetValue(&amp;amp;quot;VAL150K_CY&amp;amp;quot;)%nl% values(4) = GetValue(&amp;amp;quot;VAL200K_CY&amp;amp;quot;)%nl% values(5) = GetValue(&amp;amp;quot;VAL250K_CY&amp;amp;quot;)%nl% values(6) = GetValue(&amp;amp;quot;VAL300K_CY&amp;amp;quot;)%nl% values(7) = GetValue(&amp;amp;quot;VAL400K_CY&amp;amp;quot;)%nl% values(8) = GetValue(&amp;amp;quot;VAL500K_CY&amp;amp;quot;)%nl% values(9) = GetValue(&amp;amp;quot;VAL750K_CY&amp;amp;quot;)%nl% values(10) = GetValue(&amp;amp;quot;VAL1M_CY&amp;amp;quot;)%nl% %nl% Dim rangeValues(10,1)%nl% rangeValues(0, 0) = 0%nl% rangeValues(0, 1) = 50000%nl% rangeValues(1, 0) = 50000%nl% rangeValues(1, 1) = 100000%nl% rangeValues(2, 0) = 100000%nl% rangeValues(2, 1) = 150000%nl% rangeValues(3, 0) = 150000%nl% rangeValues(3, 1) = 200000%nl% rangeValues(4, 0) = 200000%nl% rangeValues(4, 1) = 250000%nl% rangeValues(5, 0) = 250000%nl% rangeValues(5, 1) = 300000%nl% rangeValues(6, 0) = 300000%nl% rangeValues(6, 1) = 400000%nl% rangeValues(7, 0) = 400000%nl% rangeValues(7, 1) = 500000%nl% rangeValues(8, 0) = 500000%nl% rangeValues(8, 1) = 750000%nl% rangeValues(9, 0) = 750000%nl% rangeValues(9, 1) = 1000000%nl% rangeValues(10, 0) = 1000000%nl% rangeValues(10, 1) = 1000002%nl% %nl% Dim median%nl% median = CalculateMedianLinear(values, rangeValues)%nl% %nl% ReturnValue(median)&amp;lt;Defaults decimals="0" percentage="" valueType="CURRENCY" indexable="TRUE" /&amp;gt;&amp;lt;/Summarization&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff Hincy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 14:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581310#M640</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-15T14:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581311#M641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use your calculation unmodified. I'll give this one a try and then let you know how it works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for your help. I really appreciate it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 16:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581311#M641</guid>
      <dc:creator>JasmineP</dc:creator>
      <dc:date>2013-02-15T16:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581312#M642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jhincy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your welcome!&amp;nbsp; If you are using our variable then just make sure its in your current BDS layer and if not you can use the Custom Data setup wizard to add it and all the child variables required&amp;nbsp; to calculate it (this is done automatically when you add the median) back to the BDS layer, and then you just select that variable to add it to a report or query it using any of the BA wizards.&amp;nbsp; You will not need to build the calculation anywhere in the application after that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 17:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581312#M642</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-15T17:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581313#M643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately this code didn't work. In the Custom BDS wizard, I copied your code into the custom calculation window and when I verified the code I rec'd the attached error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Basic license for BA which is probably why this variable isn't included in my dataset. I ran a census tract spatial overlay to grab the 2012 home owner variables from BAO. Now that I have all the 2012 home owner value variables, I've created a custom BDS layer which works great (except for the median calculation for home value). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas or suggestions? Thanks again for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Jasmine,&lt;BR /&gt;&lt;BR /&gt;Are you looking to create your own Median Home Value calculation, customize our calculation, or use our calculation unmodified?&amp;nbsp; In our dataset we use &lt;STRONG&gt;2012 Median Value of Owner Occupied Housing Units&lt;/STRONG&gt;(MEDVAL_CY) and its a standard variable in our base dataset.&lt;BR /&gt;&lt;BR /&gt;Here is the calculation directly from our 2012 dataset.&amp;nbsp; The stub names in the calculation are the same as the 2011 dataset.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;Summarization name="MEDVAL_CY" FieldName="MEDVAL_CY" dataset="2012/2017 Demographics (Esri)" aliasname="2012 Median Home Value" basetype="" SummaryType="CALC" WeightField="" category="2012 Home Value (Esri)" previewvalue="283479" longdescription="2012 Median Home Value (Esri)" usedfields="VAL0_CY,VAL50K_CY,VAL100K_CY,VAL150K_CY,VAL200K_CY,VAL250K_CY,VAL300K_CY,VAL400K_CY,VAL500K_CY,VAL750K_CY,VAL1M_CY" indexbase="167749"&amp;gt;Dim values(10)%nl% values(0) = GetValue(&amp;amp;quot;VAL0_CY&amp;amp;quot;)%nl% values(1) = GetValue(&amp;amp;quot;VAL50K_CY&amp;amp;quot;)%nl% values(2) = GetValue(&amp;amp;quot;VAL100K_CY&amp;amp;quot;)%nl% values(3) = GetValue(&amp;amp;quot;VAL150K_CY&amp;amp;quot;)%nl% values(4) = GetValue(&amp;amp;quot;VAL200K_CY&amp;amp;quot;)%nl% values(5) = GetValue(&amp;amp;quot;VAL250K_CY&amp;amp;quot;)%nl% values(6) = GetValue(&amp;amp;quot;VAL300K_CY&amp;amp;quot;)%nl% values(7) = GetValue(&amp;amp;quot;VAL400K_CY&amp;amp;quot;)%nl% values(8) = GetValue(&amp;amp;quot;VAL500K_CY&amp;amp;quot;)%nl% values(9) = GetValue(&amp;amp;quot;VAL750K_CY&amp;amp;quot;)%nl% values(10) = GetValue(&amp;amp;quot;VAL1M_CY&amp;amp;quot;)%nl% %nl% Dim rangeValues(10,1)%nl% rangeValues(0, 0) = 0%nl% rangeValues(0, 1) = 50000%nl% rangeValues(1, 0) = 50000%nl% rangeValues(1, 1) = 100000%nl% rangeValues(2, 0) = 100000%nl% rangeValues(2, 1) = 150000%nl% rangeValues(3, 0) = 150000%nl% rangeValues(3, 1) = 200000%nl% rangeValues(4, 0) = 200000%nl% rangeValues(4, 1) = 250000%nl% rangeValues(5, 0) = 250000%nl% rangeValues(5, 1) = 300000%nl% rangeValues(6, 0) = 300000%nl% rangeValues(6, 1) = 400000%nl% rangeValues(7, 0) = 400000%nl% rangeValues(7, 1) = 500000%nl% rangeValues(8, 0) = 500000%nl% rangeValues(8, 1) = 750000%nl% rangeValues(9, 0) = 750000%nl% rangeValues(9, 1) = 1000000%nl% rangeValues(10, 0) = 1000000%nl% rangeValues(10, 1) = 1000002%nl% %nl% Dim median%nl% median = CalculateMedianLinear(values, rangeValues)%nl% %nl% ReturnValue(median)&amp;lt;Defaults decimals="0" percentage="" valueType="CURRENCY" indexable="TRUE" /&amp;gt;&amp;lt;/Summarization&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jeff Hincy&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 19:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581313#M643</guid>
      <dc:creator>JasmineP</dc:creator>
      <dc:date>2013-02-15T19:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581314#M644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jhincy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry if I wasnt clear enough but you dont need that calculation.&amp;nbsp; I added it in case you wanted to modify it but its not formatted 100% for use in our field calculator and would take some tweaking.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead go to Business Analyst-&amp;gt;Custom Data Setup-&amp;gt;Open and Edit and existing BDS layer and select your BDS layer you wish to add the variable to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you are in the Variable selection dialogue navigate to the Business Analyst bds layer and select the Median Value of Owner Occupied Housing Units and move it from the left dialogue to the right dialogue.&amp;nbsp; At this point a popup screen will appear listing the base variables needed to calculate the median for home value.&amp;nbsp; Just hit yes to add them also and then hit next and hit Finish and save your BDS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The calculation for that median will be added to your BDS layer behind the scenes and will be available in the Business Analyst wizards when that BDS is loaded into your table of contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that still isnt working I suggest you call Tech Support so they can walk you through the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 19:58:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581314#M644</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-15T19:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581315#M645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is, my Business Analyst BDS layer &lt;/SPAN&gt;&lt;STRONG&gt;does not &lt;/STRONG&gt;&lt;SPAN&gt; include any 2012 variables or Home Owner Value variables, whatsoever. That's why I'm creating this custom BDS.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am very familiar with BA and creating Custom BDS layers. I don't need any step-by-step instructions, just the original Esri calculation used for aggregating Median Home Owner Value. All I want to do is plug the code into the Edit Calculate Field dialogue box (see attachment) so when I run reports, Median Home Owner Value will be aggregated accurately. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 20:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581315#M645</guid>
      <dc:creator>JasmineP</dc:creator>
      <dc:date>2013-02-15T20:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581316#M646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jhincy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Understood, but if you are you using the BA Custom Data Setup wizard and if you have the Business Analyst Data loaded into your MXD then you will have access to whichever dataset you are licensed for and it would not matter if you created a BDS on our data or imported your own data.&amp;nbsp; Either way you typically would be required to join your data to our geometries and as part of that process you would have access to our entire dataset in the variable select dialogue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the only way you wouldnt see the BA data is if you imported your data and you used your own geometries.&amp;nbsp; Either way if you are not seeing the BA variables then I suggest you call in an incident to tech support and if they cannot assist you can tell them to get me involved and we can work through it on the phone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helped.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 20:39:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581316#M646</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-15T20:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581317#M647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok--- Lets just say I have a custom variable in the Census 2010 geography that is Median Car Value. With Median Car Value, there are also five base variables: Car Value &amp;lt;$5000, Car Value $5,001-10,000, Car Value $10,001-20,000 and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Say I wanted Median Car Value to be calculated and aggregated the same way that Median Home Value is aggregated in the original Business Analyst bds layer. How would I do this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I previously worked with Matt P. from tech support and he said that my dataset &lt;/SPAN&gt;&lt;STRONG&gt;doesn't &lt;/STRONG&gt;&lt;SPAN&gt;include Home Owner Value variables or Median Home Value. To get the Home Owner Value variables, he instructed me to run a spatial overlay using the BA Census Tract layer (which I did) from BAO. The only step he forgot to mention was how to setup Median Home Value so that it's aggregated in the same methodology used in the original BA bds. Unfortunately, my maintenance is no longer current so I can't call tech support. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my correspondance with Matt:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#000080&amp;quot;;"&gt;Hi Jasmine,&lt;BR /&gt;&lt;BR /&gt;Nice talking to you. As discussed please use the export map function &amp;gt; Choose pdf as the type (it is more reliable). As for the online data and reports there will hopefully be updated reports for those reports later in November. We talked about a process of creating a new custom report by appending, here is the rough workflow:&lt;BR /&gt;1. Right click the census block group &amp;gt; Properties &amp;gt; Turn off all the fields except ones that are necessary for your (Geographic Identifiers (ID) &amp;gt; Select all &amp;gt; Export to a shapefile or feature class.&lt;BR /&gt;2. BA &amp;gt; Analysis &amp;gt; Append data &amp;gt; Use Online Data &amp;gt; Append to the newly exported census block layer 3. Search and add all the variables that were used in the executive summary and housing profile &amp;gt; Search and click the arrow to add them. Next and finish.&lt;BR /&gt;4. Once the data is appended. (may take a while) 5. BA &amp;gt; Custom data setup &amp;gt; Import your own data &amp;gt; Use base geography &amp;gt; Add your appended layer and choose the ID (Cenus ID) to identify.&lt;BR /&gt;6. Add your variables and finish.&lt;BR /&gt;7. Create a report &amp;gt; Using the report designer &amp;gt; Edit &amp;gt; Add a bds &amp;gt; Add the newly created bds that you made &amp;gt; add those variables.&lt;BR /&gt;&lt;BR /&gt;Please let me know if you have any additional questions. Thanks Jasmine!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Matthew P.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Jasmine,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Understood, but if you are you using the BA Custom Data Setup wizard and if you have the Business Analyst Data loaded into your MXD then you will have access to whichever dataset you are licensed for and it would not matter if you created a BDS on our data or imported your own data. Either way you typically would be required to join your data to our geometries and as part of that process you would have access to our entire dataset in the variable select dialogue.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;So the only way you wouldnt see the BA data is if you imported your data and you used your own geometries. Either way if you are not seeing the BA variables then I suggest you call in an incident to tech support and if they cannot assist you can tell them to get me involved and we can work through it on the phone.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;I hope this helped. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Regards,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 21:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581317#M647</guid>
      <dc:creator>JasmineP</dc:creator>
      <dc:date>2013-02-15T21:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581318#M648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jhincy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok let me see if I can help you here then.&amp;nbsp; First, can you let me know what dataset you have?&amp;nbsp; Is it BA Desktop 2006/2011 or is it earlier?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Go to Business Analyst-Preferences and under the general tab and look at the very bottom and tell me the Build # and then go to the Dataset tab and tell me what Current Dataset you have selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:29:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581318#M648</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-19T13:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581319#M649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Build #10.1.0.85&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Current dataset: USA (ESRI)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The dataset I have is 2011/2016. It also includes 2010 variables from the most recent Census.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 14:26:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581319#M649</guid>
      <dc:creator>JasmineP</dc:creator>
      <dc:date>2013-02-19T14:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581320#M650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jhincy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK, below is the calculation that is formatted to work in the Custom Data Setup Wizard you will need to calculate the &lt;/SPAN&gt;&lt;STRONG&gt;Current Year Median Home Value&lt;/STRONG&gt;&lt;SPAN&gt;. Just be sure you have all the underlying home value variables used in the calculation in your BDS or it wont work.&amp;nbsp; I just manually built this calculation and I havent tested it so I would suggest if it works that you create a trade area and compare the online Median Home Value to this one to be sure I didnt make any mistakes.&amp;nbsp; Keep in mind if you pulled the data from BAO the Median Home Value data will be 2012 vintage and not 2011.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an aside if you update your maintenance for the 2012 data desktop release this variable will be included in that dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if this works for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff Hincy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim values(10)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(0) = Round(GetValue("VAL0_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(1) = Round(GetValue("VAL50K_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(2) = Round(GetValue("VAL100K_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(3) = Round(GetValue("VAL150K_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(4) = Round(GetValue("VAL200K_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(5) = Round(GetValue("VAL250K_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(6) = Round(GetValue("VAL300K_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(7) = Round(GetValue("VAL400K_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(8) = Round(GetValue("VAL500K_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(9) = Round(GetValue("VAL750K_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values(10) = Round(GetValue("VAL1M_CY")) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim rangeValues(10,1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(0, 0) = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(0, 1) = 50000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(1, 0) = 50000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(1, 1) = 100000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(2, 0) = 100000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(2, 1) = 150000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(3, 0) = 150000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(3, 1) = 200000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(4, 0) = 200000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(4, 1) = 250000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(5, 0) = 250000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(5, 1) = 300000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(6, 0) = 300000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(6, 1) = 400000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(7, 0) = 400000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(7, 1) = 500000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(8, 0) = 500000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(8, 1) = 750000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(9, 0) = 750000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(9, 1) = 1000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(10, 0) = 1000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangeValues(10, 1) = 1000002&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim median&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;median = CalculateMedianLinear(values, rangeValues)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ReturnValue(median)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 16:40:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581320#M650</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-19T16:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BDS - Aggregation Calculation- VBScript for Median Home Owner Value</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581321#M651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This latest code you provided worked. Thank you soooooo much for all your help, I really appreciate it!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jasmine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;OK, below is the calculation that is formatted to work in the Custom Data Setup Wizard you will need to calculate the &lt;STRONG&gt;Current Year Median Home Value&lt;/STRONG&gt;. Just be sure you have all the underlying home value variables used in the calculation in your BDS or it wont work.&amp;nbsp; I just manually built this calculation and I havent tested it so I would suggest if it works that you create a trade area and compare the online Median Home Value to this one to be sure I didnt make any mistakes.&amp;nbsp; Keep in mind if you pulled the data from BAO the Median Home Value data will be 2012 vintage and not 2011.&lt;BR /&gt;&lt;BR /&gt;As an aside if you update your maintenance for the 2012 data desktop release this variable will be included in that dataset.&lt;BR /&gt;&lt;BR /&gt;Let me know if this works for you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jeff Hincy&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dim values(10)&lt;BR /&gt;values(0) = Round(GetValue("VAL0_CY")) &lt;BR /&gt;values(1) = Round(GetValue("VAL50K_CY")) &lt;BR /&gt;values(2) = Round(GetValue("VAL100K_CY")) &lt;BR /&gt;values(3) = Round(GetValue("VAL150K_CY")) &lt;BR /&gt;values(4) = Round(GetValue("VAL200K_CY")) &lt;BR /&gt;values(5) = Round(GetValue("VAL250K_CY")) &lt;BR /&gt;values(6) = Round(GetValue("VAL300K_CY")) &lt;BR /&gt;values(7) = Round(GetValue("VAL400K_CY")) &lt;BR /&gt;values(8) = Round(GetValue("VAL500K_CY")) &lt;BR /&gt;values(9) = Round(GetValue("VAL750K_CY")) &lt;BR /&gt;values(10) = Round(GetValue("VAL1M_CY")) &lt;BR /&gt;&lt;BR /&gt;Dim rangeValues(10,1)&lt;BR /&gt;rangeValues(0, 0) = 0&lt;BR /&gt;rangeValues(0, 1) = 50000&lt;BR /&gt;rangeValues(1, 0) = 50000&lt;BR /&gt;rangeValues(1, 1) = 100000&lt;BR /&gt;rangeValues(2, 0) = 100000&lt;BR /&gt;rangeValues(2, 1) = 150000&lt;BR /&gt;rangeValues(3, 0) = 150000&lt;BR /&gt;rangeValues(3, 1) = 200000&lt;BR /&gt;rangeValues(4, 0) = 200000&lt;BR /&gt;rangeValues(4, 1) = 250000 &lt;BR /&gt;rangeValues(5, 0) = 250000 &lt;BR /&gt;rangeValues(5, 1) = 300000 &lt;BR /&gt;rangeValues(6, 0) = 300000 &lt;BR /&gt;rangeValues(6, 1) = 400000&lt;BR /&gt;rangeValues(7, 0) = 400000&lt;BR /&gt;rangeValues(7, 1) = 500000&lt;BR /&gt;rangeValues(8, 0) = 500000&lt;BR /&gt;rangeValues(8, 1) = 750000&lt;BR /&gt;rangeValues(9, 0) = 750000&lt;BR /&gt;rangeValues(9, 1) = 1000000&lt;BR /&gt;rangeValues(10, 0) = 1000000&lt;BR /&gt;rangeValues(10, 1) = 1000002&lt;BR /&gt;&lt;BR /&gt;Dim median&lt;BR /&gt;median = CalculateMedianLinear(values, rangeValues)&lt;BR /&gt;&lt;BR /&gt; ReturnValue(median)&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 19:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/custom-bds-aggregation-calculation-vbscript-for/m-p/581321#M651</guid>
      <dc:creator>JasmineP</dc:creator>
      <dc:date>2013-02-19T19:10:31Z</dc:date>
    </item>
  </channel>
</rss>

