<?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 Random Cycle Inventory in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044818#M940448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a question ask about Random Cycle Inventory Report.&amp;nbsp; I have attached a spreadsheet of item numbers.&amp;nbsp; What the client was wondering is if there was a way to design a report in Qlikview that would go in and randomly pick 25-50 items so they can do spot checks on their inventory.&amp;nbsp; Has anyone ever done anything like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2016 21:27:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-03T21:27:31Z</dc:date>
    <item>
      <title>Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044818#M940448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a question ask about Random Cycle Inventory Report.&amp;nbsp; I have attached a spreadsheet of item numbers.&amp;nbsp; What the client was wondering is if there was a way to design a report in Qlikview that would go in and randomly pick 25-50 items so they can do spot checks on their inventory.&amp;nbsp; Has anyone ever done anything like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 21:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044818#M940448</guid>
      <dc:creator />
      <dc:date>2016-02-03T21:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044819#M940449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try,&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1454552500319429 jive_text_macro" jivemacro_uid="_1454552500319429"&gt;
&lt;P&gt;SAMPLE 0.01 LOAD ItemNumber&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Inventory Items.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 02:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044819#M940449</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-04T02:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044820#M940450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never heard about the SAMPLE function before. Thanks for introducing to a new function &lt;A _jive_internal="true" href="https://community.qlik.com/people/TamilArasu"&gt;Tamil&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 02:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044820#M940450</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-04T02:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044821#M940451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also create a sample dynamically in your app having an input of the % sample you want interactively:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-02-04 #2.PNG" class="jive-image image-1" src="/legacyfs/online/113506_2016-02-04 #2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 02:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044821#M940451</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-02-04T02:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044822#M940452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just place Sample % in front of the Load statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; Sample 0.05&amp;nbsp; // Pulls 5% of random records from the data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR manual process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;ItemNumber,&lt;/P&gt;&lt;P&gt;RecNo() AS Sno&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Inventory Items.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;WHERE MixMatch(RecNo(), Floor(Rand() * 2858), Floor(Rand() * &lt;SPAN style="font-size: 13.3333px;"&gt;2858&lt;/SPAN&gt;), Floor(Rand() * &lt;SPAN style="font-size: 13.3333px;"&gt;2858&lt;/SPAN&gt;), Floor(Rand() * &lt;SPAN style="font-size: 13.3333px;"&gt;2858&lt;/SPAN&gt;), Floor(Rand() * &lt;SPAN style="font-size: 13.3333px;"&gt;2858&lt;/SPAN&gt;), Floor(Rand() * &lt;SPAN style="font-size: 13.3333px;"&gt;2858&lt;/SPAN&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: 2858 is number of records in your excel file.&amp;nbsp; I just filtered 6 records if you need further items just add&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Floor(Rand() * &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2858&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;) as many times as you required &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;in the Match().&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 02:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044822#M940452</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-04T02:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044823#M940453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below one takes the percentage dynamically irrespective of records count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14545552125144404" jivemacro_uid="_14545552125144404" modifiedtitle="true"&gt;
&lt;P&gt;//Set your max and min range&lt;/P&gt;
&lt;P&gt;Set vMaxLimit = 50;&lt;/P&gt;
&lt;P&gt;Set vMinLimit = 25;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;LOAD ItemNumber&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Inventory Items.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;Let vRandom = (Rand()*(vMaxLimit-vMinLimit)+ vMinLimit) / NoOfRows('Temp');&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;SAMPLE $(vRandom) LOAD ItemNumber&lt;/P&gt;
&lt;P&gt;Resident Temp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table Temp;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 03:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044823#M940453</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-04T03:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044824#M940454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much it worked like a champ.&amp;nbsp; The only question I have is there a way that once the random items come up they wont come up again for lets say 10 weeks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 13:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044824#M940454</guid>
      <dc:creator />
      <dc:date>2016-02-04T13:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044825#M940455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess one solution would be to start accumulate a sample in a qvd and may be extract more then 25 values each time and check for where not exists from the accumulated sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 13:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044825#M940455</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-04T13:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044826#M940456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes David. You need to store the sample somewhere as qvd and use where not exists function to load the new samples as said by sunny. You can also assign a flag to identify the week.&amp;nbsp; That would be the best option. Just give a try and let us know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 15:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044826#M940456</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-05T15:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044827#M940457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like your Flag Idea but I have not used them up to now.&amp;nbsp; If you could share an example that would be awesome.&amp;nbsp; I am going to look them up as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 15:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044827#M940457</guid>
      <dc:creator />
      <dc:date>2016-02-05T15:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044828#M940458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, Here you go. Attached sample against our file. Le me know, If you find any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14549035965951795 jive_text_macro" jivemacro_uid="_14549035965951795" modifiedtitle="true"&gt;
&lt;P&gt;//***************************************************************************&lt;/P&gt;
&lt;P&gt;//Max,&amp;nbsp; Min limit and Max week&lt;/P&gt;
&lt;P&gt;Set vMaxlimit = 50;&lt;/P&gt;
&lt;P&gt;Set vMinlimit = 25;&lt;/P&gt;
&lt;P&gt;Set vMaxWeek&amp;nbsp; = 10;&lt;/P&gt;
&lt;P&gt;//***************************************************************************&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//If Backup qvd file exists then 0 else 1&lt;/P&gt;
&lt;P&gt;Let vQVDExists =IsNull(QvdCreateTime('Backup\Sample.qvd'));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If vQVDExists = -1 then&lt;/P&gt;
&lt;P&gt;Headers:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemNumber,Week&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;STORE Headers into [Backup\Sample.qvd] (qvd);&lt;/P&gt;
&lt;P&gt;End If&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Headers:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;ItemNumber,Week&lt;/P&gt;
&lt;P&gt;FROM [Backup\Sample.qvd] (qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;LOAD ItemNumber&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Inventory Items.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;Let vRandom = (Rand()*(vMaxlimit-vMinlimit)+vMinlimit)/NoOfRows('Temp');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table Temp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Concatenate (Headers)&lt;/P&gt;
&lt;P&gt;Sample $(vRandom) LOAD ItemNumber,&lt;/P&gt;
&lt;P&gt;Week(Today()) as Week&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Inventory Items.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;Count:&lt;/P&gt;
&lt;P&gt;Load Count(DISTINCT Week) as Count&lt;/P&gt;
&lt;P&gt;Resident Headers;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Let vUnique = Peek('Count');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table Count;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//***************************************************************************&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Reset after 10 weeks&lt;/P&gt;
&lt;P&gt;If vUnique &amp;gt; vMaxWeek then&lt;/P&gt;
&lt;P&gt;Drop Table Headers;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;Headers:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Sample $(vRandom) LOAD ItemNumber,&lt;/P&gt;
&lt;P&gt;Week(Today()) as Week&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Inventory Items.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;ENDIF&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;STORE Headers into [Backup\Sample.qvd] (qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//***************************************************************************&lt;/P&gt;


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 03:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044828#M940458</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-08T03:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Random Cycle Inventory</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044829#M940459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much.&amp;nbsp; That is perfect.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 16:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Cycle-Inventory/m-p/1044829#M940459</guid>
      <dc:creator />
      <dc:date>2016-02-09T16:32:17Z</dc:date>
    </item>
  </channel>
</rss>

