<?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 Polygon isn't working in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Polygon-isn-t-working/m-p/620396#M13451</link>
    <description>&lt;P&gt;With such a difference in the lengths of the District variable I would tend to suspect one of them may have leading spaces.&lt;/P&gt;
&lt;P&gt;Many times SAS will display values with leading spaces without them.&lt;/P&gt;
&lt;P&gt;Consider:&lt;/P&gt;
&lt;PRE&gt;data work.one;
   district= '           00036';
run;
data work.two;
   district= '00036';
run;

data work.junk;
   merge work.one 
         work.two
   ;
   by district;
run;

proc print data= work.junk;
run;&lt;/PRE&gt;
&lt;P&gt;The MERGE in the data step considers the values as different so you get two output observations. The proc print appears to have identical values as it will by default strip the leading spaces when printing.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 23:31:30 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-01-27T23:31:30Z</dc:date>
    <item>
      <title>Custom Polygon isn't working</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Polygon-isn-t-working/m-p/619702#M13440</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Shapefile that consists of 52 Districts.&amp;nbsp; Using this Shapefile, I created a new custom polygon provider called "Fish Wildlife Enf Districts"&lt;STRONG&gt;,&amp;nbsp;&lt;/STRONG&gt;using DISTRICT as the ID Column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="52 Regions.jpg" style="width: 455px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35585i8A54B99BEBE2D547/image-size/large?v=v2&amp;amp;px=999" role="button" title="52 Regions.jpg" alt="52 Regions.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The map above was created as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Geography Item.jpg" style="width: 515px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35586iEC84C95E431B1AE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Geography Item.jpg" alt="Geography Item.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So far, so good!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data file called "VW_ENFORCEMENT_ACTIONS" that has a column called DISTRICT CODE.&amp;nbsp; It has 60 unique District Codes because it includes historical data, and 8 of the districts have since been incorporated into other districts.&amp;nbsp; &amp;nbsp;As best as I can tell, the DISTRICT CODE values in this file match the DISTRICT values in my map; for example, I have values of "00036" in both.&amp;nbsp; So I would expect that 52 out of 60 would "map" (87%).&amp;nbsp; However, when I try to create a Geography Item using DISTRICT CODE as below, I get 0% mapped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edit geography.jpg" style="width: 513px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35587i5DE5342825EE9835/image-size/large?v=v2&amp;amp;px=999" role="button" title="edit geography.jpg" alt="edit geography.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&amp;nbsp; is it because the DISTRICT and DISTRICT CODE are not formatted &lt;U&gt;exactly&lt;/U&gt; the same way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35588i8020DFAD37BA1364/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35589i7D6AF3E220A695AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 22:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Polygon-isn-t-working/m-p/619702#M13440</guid>
      <dc:creator>blewsas</dc:creator>
      <dc:date>2020-01-23T22:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Polygon isn't working</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Polygon-isn-t-working/m-p/620151#M13441</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I think the formatting is your problem, make sure they have the same type and length, should fix it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 13:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Polygon-isn-t-working/m-p/620151#M13441</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2020-01-27T13:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Polygon isn't working</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Polygon-isn-t-working/m-p/620396#M13451</link>
      <description>&lt;P&gt;With such a difference in the lengths of the District variable I would tend to suspect one of them may have leading spaces.&lt;/P&gt;
&lt;P&gt;Many times SAS will display values with leading spaces without them.&lt;/P&gt;
&lt;P&gt;Consider:&lt;/P&gt;
&lt;PRE&gt;data work.one;
   district= '           00036';
run;
data work.two;
   district= '00036';
run;

data work.junk;
   merge work.one 
         work.two
   ;
   by district;
run;

proc print data= work.junk;
run;&lt;/PRE&gt;
&lt;P&gt;The MERGE in the data step considers the values as different so you get two output observations. The proc print appears to have identical values as it will by default strip the leading spaces when printing.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 23:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Polygon-isn-t-working/m-p/620396#M13451</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-27T23:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Polygon isn't working</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Polygon-isn-t-working/m-p/620399#M13452</link>
      <description>&lt;P&gt;Yes, likely related to the different variable length and potential leading/ending spaces. You may also consider using numeric columns in this case (in both data sets). Unless necessary - your IDs could be simple numbers and you could apply formats such as .Z5 or similar to get the expected formatting. Would make your data set smaller as well - along with avoiding potential matching issues. Let us know how you go. Thanks, Falko&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 23:46:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Polygon-isn-t-working/m-p/620399#M13452</guid>
      <dc:creator>FalkoSchulz</dc:creator>
      <dc:date>2020-01-27T23:46:18Z</dc:date>
    </item>
  </channel>
</rss>

