<?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: Number of Occurances in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110013#M628708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik, thank you for your reply.  Some data is attached here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to eliminate all guests with an occurrence of only 1 and to&lt;/P&gt;&lt;P&gt;sum (or count) the remaining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if Paul has 3 occurrences, Russell and 2 Occurrences and Steve has 1&lt;/P&gt;&lt;P&gt;occurrence.&lt;/P&gt;&lt;P&gt;By 1st eliminating Steve who has only 1 occurrence the sum would be 5 and&lt;/P&gt;&lt;P&gt;the count would be 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, really appreciated.&lt;/P&gt;&lt;P&gt;Russell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Tue, Aug 30, 2016 at 4:59 PM, Kaushik Solanki &amp;lt;qcwebmaster@qlikview.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 10:06:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-30T10:06:31Z</dc:date>
    <item>
      <title>Number of Occurances</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110011#M628702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All, I have a dataset of the customers to an F&amp;amp;B outlet at a hotel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I would like to show the number of repeat guests to the restaurant each month so need to count the occurrences of each guest name and then show only those greater than 1 by month.&amp;nbsp; Can anyone advise on the script for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;In the bar &lt;/SPAN&gt;chart&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; I would just like to show each month the number of repeat guests which I will show as a percentage of total guests for the month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 05:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110011#M628702</guid>
      <dc:creator />
      <dc:date>2016-08-30T05:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Occurances</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110012#M628706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Russell,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share the sample data along with the expected output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 08:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110012#M628706</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-30T08:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Occurances</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110013#M628708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik, thank you for your reply.  Some data is attached here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to eliminate all guests with an occurrence of only 1 and to&lt;/P&gt;&lt;P&gt;sum (or count) the remaining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if Paul has 3 occurrences, Russell and 2 Occurrences and Steve has 1&lt;/P&gt;&lt;P&gt;occurrence.&lt;/P&gt;&lt;P&gt;By 1st eliminating Steve who has only 1 occurrence the sum would be 5 and&lt;/P&gt;&lt;P&gt;the count would be 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, really appreciated.&lt;/P&gt;&lt;P&gt;Russell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Tue, Aug 30, 2016 at 4:59 PM, Kaushik Solanki &amp;lt;qcwebmaster@qlikview.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110013#M628708</guid>
      <dc:creator />
      <dc:date>2016-08-30T10:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Occurances</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110014#M628713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rusell,&lt;/P&gt;&lt;P&gt;With your data and this script, this will be your output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14725555171307086 jive_text_macro" jivemacro_uid="_14725555171307086" modifiedtitle="true"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD Date, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date) as MonthName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as RowNum,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BillNo, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Guest Name]&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Data for Occurance Question.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Occurences:&lt;/P&gt;
&lt;P&gt;LEFT JOIN (Data)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(DISTINCT RowNum) as Occurrence,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Guest Name]&lt;/P&gt;
&lt;P&gt;RESIDENT Data&lt;/P&gt;
&lt;P&gt;GROUP BY MonthName, [Guest Name];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FinalData:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(DISTINCT RowNum) as Times,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(DISTINCT [Guest Name]) as Customers&lt;/P&gt;
&lt;P&gt;RESIDENT Data&lt;/P&gt;
&lt;P&gt;WHERE Occurrence &amp;gt; 1&lt;/P&gt;
&lt;P&gt;GROUP BY MonthName;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135973_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 11:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110014#M628713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T11:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Occurances</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110015#M628716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, that's perfect!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110015#M628716</guid>
      <dc:creator />
      <dc:date>2016-08-30T13:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Occurances</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110016#M628719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're wellcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 06:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110016#M628719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T06:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Occurances</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110017#M628722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please let me know how you could get the customers as 10 , i have got everything else right but customers i am not able to get the right number,can you tell me what expression you used in the chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 06:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110017#M628722</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2016-08-31T06:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Occurances</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110018#M628724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I use a count distinct: &lt;SPAN class="func"&gt;COUNT(&lt;SPAN class="keyword"&gt;DISTINCT&lt;/SPAN&gt; [Guest &lt;SPAN class="keyword"&gt;Name&lt;/SPAN&gt;]) &lt;SPAN class="keyword"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="func"&gt;&lt;SPAN class="keyword"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="func"&gt;&lt;SPAN class="keyword"&gt;Regards!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Occurances/m-p/1110018#M628724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T09:26:23Z</dc:date>
    </item>
  </channel>
</rss>

