<?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 Add new dummy columns for filter catergories in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Add-new-dummy-columns-for-filter-catergories/m-p/744104#M14952</link>
    <description>&lt;P&gt;&amp;nbsp;I would like to add a dummies categories column "Level" (1,2,3) just for filtering purpose. What I have in mind is:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;If _n_ = 1 then Level = 1&lt;/P&gt;&lt;P&gt;else (if _n_ = 2 then Level =2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else Level = 3)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first row is Level 1, second row is Level 2, the rest of table is assigned to Level 3. But it seems the syntax in Viya is different with SAS EG.&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 09:28:00 GMT</pubDate>
    <dc:creator>vietlinh12hoa</dc:creator>
    <dc:date>2021-05-27T09:28:00Z</dc:date>
    <item>
      <title>Add new dummy columns for filter catergories</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Add-new-dummy-columns-for-filter-catergories/m-p/744104#M14952</link>
      <description>&lt;P&gt;&amp;nbsp;I would like to add a dummies categories column "Level" (1,2,3) just for filtering purpose. What I have in mind is:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;If _n_ = 1 then Level = 1&lt;/P&gt;&lt;P&gt;else (if _n_ = 2 then Level =2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else Level = 3)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first row is Level 1, second row is Level 2, the rest of table is assigned to Level 3. But it seems the syntax in Viya is different with SAS EG.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 09:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Add-new-dummy-columns-for-filter-catergories/m-p/744104#M14952</guid>
      <dc:creator>vietlinh12hoa</dc:creator>
      <dc:date>2021-05-27T09:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add new dummy columns for filter catergories</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Add-new-dummy-columns-for-filter-catergories/m-p/744138#M14954</link>
      <description>&lt;P&gt;Are you are talking about a dummy column to use as selector labels in a report prompt (button bar, etc)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are creating the column within VA, one way is to create a custom category with three value groups, then just put some arbitrary values in each group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 13:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Add-new-dummy-columns-for-filter-catergories/m-p/744138#M14954</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2021-05-27T13:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add new dummy columns for filter catergories</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Add-new-dummy-columns-for-filter-catergories/m-p/744147#M14956</link>
      <description>&lt;P&gt;level = min(_n_, 3);&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 13:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Add-new-dummy-columns-for-filter-catergories/m-p/744147#M14956</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2021-05-27T13:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add new dummy columns for filter catergories</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Add-new-dummy-columns-for-filter-catergories/m-p/744199#M14957</link>
      <description>Thanks it seems a quick solution. but it only for numeric, right? In case the level is character maybe if else it's still needed.</description>
      <pubDate>Thu, 27 May 2021 15:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Add-new-dummy-columns-for-filter-catergories/m-p/744199#M14957</guid>
      <dc:creator>vietlinh12hoa</dc:creator>
      <dc:date>2021-05-27T15:52:50Z</dc:date>
    </item>
  </channel>
</rss>

