<?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 Count Flag based on Conditions in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Flag-based-on-Conditions/m-p/504217#M11274</link>
    <description>&lt;P&gt;Hi SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on SAS Visual Analytics and Struck in some logic. I have a column of character which has three flag "0","1" and "DROP".&lt;/P&gt;&lt;P&gt;i need to count the flag based on conditions of flag. I working on Cross tab&amp;nbsp; and i need to count the "0" flag against different Shops.&lt;/P&gt;&lt;P&gt;I tried custom category but it wont work as measure in cross tab and i also tried this&amp;nbsp;&lt;STRONG&gt;Count [_ByGroup_] (( 'New_Code'n[Raw] Contains '0' ))&amp;nbsp;&lt;/STRONG&gt;and other different approach but it is giving error. please suggest some solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Oct 2018 07:22:54 GMT</pubDate>
    <dc:creator>rarahsghsdd</dc:creator>
    <dc:date>2018-10-15T07:22:54Z</dc:date>
    <item>
      <title>Count Flag based on Conditions</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Flag-based-on-Conditions/m-p/504217#M11274</link>
      <description>&lt;P&gt;Hi SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on SAS Visual Analytics and Struck in some logic. I have a column of character which has three flag "0","1" and "DROP".&lt;/P&gt;&lt;P&gt;i need to count the flag based on conditions of flag. I working on Cross tab&amp;nbsp; and i need to count the "0" flag against different Shops.&lt;/P&gt;&lt;P&gt;I tried custom category but it wont work as measure in cross tab and i also tried this&amp;nbsp;&lt;STRONG&gt;Count [_ByGroup_] (( 'New_Code'n[Raw] Contains '0' ))&amp;nbsp;&lt;/STRONG&gt;and other different approach but it is giving error. please suggest some solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 07:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Flag-based-on-Conditions/m-p/504217#M11274</guid>
      <dc:creator>rarahsghsdd</dc:creator>
      <dc:date>2018-10-15T07:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count Flag based on Conditions</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Flag-based-on-Conditions/m-p/504313#M11281</link>
      <description>&lt;P&gt;You should be able to do that with a calculated measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if [flag] = '0' then 1&lt;/P&gt;
&lt;P&gt;else 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then use this measure in your calculations?&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 14:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Flag-based-on-Conditions/m-p/504313#M11281</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-10-15T14:09:28Z</dc:date>
    </item>
  </channel>
</rss>

