<?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: Obtaining a Key Value to reflect Number of Stores On Target in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814460#M16074</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There might be better ways of doing this, but I think this should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a distinct count of Store. You could do this by right-clicking Store in the Data pane, selecting New Calculation, and then selecting Distinct count.&lt;/P&gt;
&lt;P&gt;2. Assign the new Distinct Count measure from step 1 to a Key Value object.&lt;/P&gt;
&lt;P&gt;3. Assign a filter to the Key Value, based on your Target Reached calculated item. Select "On Target".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Key Value should display the number of stores that are on target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that helps!&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 15:18:45 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2022-05-20T15:18:45Z</dc:date>
    <item>
      <title>Obtaining a Key Value to reflect Number of Stores On Target</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814402#M16073</link>
      <description>&lt;P&gt;I can't share the actual data because its confidential, but please see excel file with a simple example of the data I have.&lt;/P&gt;&lt;P&gt;All I am trying to do is to get the total number of stores &lt;STRONG&gt;On Target &lt;/STRONG&gt;in terms of sales&amp;nbsp;and place that number in a Key Value.&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="Sales by Store Example.png" style="width: 633px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71656i5A3B86235595C3A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sales by Store Example.png" alt="Sales by Store Example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Store&lt;/STRONG&gt; - Name of the store&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual Sales&lt;/STRONG&gt; - Sales that have been carried out&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Target Sales&lt;/STRONG&gt; - The target sales amount or the day&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Target Ratio&lt;/STRONG&gt; = Actual Sales/Target Sales&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Target Reached&lt;/STRONG&gt; - This is a calculated item that I created to return "&lt;STRONG&gt;On Target&lt;/STRONG&gt;" or "&lt;STRONG&gt;Not On Target&lt;/STRONG&gt;" depending if the ratio is &amp;gt;= 1&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="Calculated Item to Return Character.png" style="width: 503px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71657i5119C1E496C5B1F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Calculated Item to Return Character.png" alt="Calculated Item to Return Character.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 08:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814402#M16073</guid>
      <dc:creator>President</dc:creator>
      <dc:date>2022-05-20T08:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining a Key Value to reflect Number of Stores On Target</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814460#M16074</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There might be better ways of doing this, but I think this should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a distinct count of Store. You could do this by right-clicking Store in the Data pane, selecting New Calculation, and then selecting Distinct count.&lt;/P&gt;
&lt;P&gt;2. Assign the new Distinct Count measure from step 1 to a Key Value object.&lt;/P&gt;
&lt;P&gt;3. Assign a filter to the Key Value, based on your Target Reached calculated item. Select "On Target".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Key Value should display the number of stores that are on target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that helps!&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814460#M16074</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2022-05-20T15:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining a Key Value to reflect Number of Stores On Target</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814668#M16079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the assistance.&lt;/P&gt;&lt;P&gt;I am going to give a go this morning, then I will update you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fungai Jani&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 07:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814668#M16079</guid>
      <dc:creator>President</dc:creator>
      <dc:date>2022-05-23T07:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining a Key Value to reflect Number of Stores On Target</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814688#M16080</link>
      <description>&lt;P&gt;Good morning&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like it worked, thanks a lot for the assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Fungai Jani&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 10:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814688#M16080</guid>
      <dc:creator>President</dc:creator>
      <dc:date>2022-05-23T10:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining a Key Value to reflect Number of Stores On Target</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814709#M16082</link>
      <description>&lt;P&gt;Great! Thanks for letting us know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 13:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Obtaining-a-Key-Value-to-reflect-Number-of-Stores-On-Target/m-p/814709#M16082</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2022-05-23T13:11:31Z</dc:date>
    </item>
  </channel>
</rss>

