<?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: Open workorder statistics in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71132#M607302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are only interested in the count relative to today, I think creating a new table or flag would work.&amp;nbsp; But I don't think that helps you with dynamically picking a date unless you create the table based on all possible dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2018 14:32:05 GMT</pubDate>
    <dc:creator>jwjackso</dc:creator>
    <dc:date>2018-03-22T14:32:05Z</dc:date>
    <item>
      <title>Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71129#M607299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi – hoping for help on this one!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a QV file with workorders:&lt;/P&gt;&lt;P&gt;ID&lt;BR /&gt;CreatedDate&lt;BR /&gt;ClosedDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for which I want to calculate how many orders are active on a given date. The definition of an active order is that the CreatedDate &amp;gt;= date in question and date in question &amp;lt;= ClosedDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thought was to generate a new table:&lt;/P&gt;&lt;P&gt;ID&lt;BR /&gt;StatDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- to be able to count the number of IDs on a specific date, but I am having difficulties having this work as reading from one table and autogenerating dates in another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a suggestion on how to do this? I have attached an example file with workorders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 08:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71129#M607299</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2018-03-22T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71130#M607300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using set analysis, &lt;A href="https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" title="https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm"&gt;https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressio…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Date={"&amp;gt;=CreatedDate&amp;lt;=ClosedDate"}&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will the ClosedDate always be populated or can it be null?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 11:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71130#M607300</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2018-03-22T11:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71131#M607301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately no - will have to dive into it, though. At the moment I'm not using a master calender in my QV as this is an older code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't it possible to do it the way I suggest - generating a new table with autogenerated dates from another table?&lt;/P&gt;&lt;P&gt;Den 22. marts 2018 kl. 12.22.21 +01.00, skrev Jerry Jackson &amp;lt;qcwebmaster@qlikview.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;Qlik Community &amp;lt;https://community.qlik.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;Open workorder statistics&lt;/P&gt;&lt;P&gt;reply from Jerry Jackson &amp;lt;https://community.qlik.com/people/jwjackso?et=watches.email.thread&amp;gt; in Scripting - View the full discussion &amp;lt;https://community.qlik.com/message/1457552?et=watches.email.thread#1457552&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using set analysis, https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressio… &amp;lt;https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Date={"&amp;gt;=CreatedDate&amp;lt;=ClosedDate"}&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will the ClosedDate always be populated or can it be null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply to this message by replying to this email, or go to the message on Qlik Community &amp;lt;https://community.qlik.com/message/1457552?et=watches.email.thread#1457552&amp;gt;Start a new discussion in Scripting by email &amp;lt;discussions-community-qlikview-scripting@qliktech-public-v7.hosted.jivesoftware.com&amp;gt; or at Qlik Community &amp;lt;https://community.qlik.com/choose-container.jspa?contentType=1&amp;amp;containerType=14&amp;amp;container=2061&amp;amp;et=watches.email.thread&amp;gt;Following Open workorder statistics &amp;lt;https://community.qlik.com/message/1457552?et=watches.email.thread#1457552&amp;gt; in these streams: Inbox&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 14:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71131#M607301</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2018-03-22T14:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71132#M607302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are only interested in the count relative to today, I think creating a new table or flag would work.&amp;nbsp; But I don't think that helps you with dynamically picking a date unless you create the table based on all possible dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 14:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71132#M607302</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2018-03-22T14:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71133#M607303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like attached?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 15:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71133#M607303</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-03-22T15:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71134#M607304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Claus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined a variable called vMyDate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try inserting the following formula (assuming vMyDate &amp;gt;=CreatedData and vMyDate either &amp;lt; ClosedDate or ClosedDate = Null):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;CreatedDate={"&amp;lt;=$(vMyDate)"},ClosedDate={"&amp;gt;$(vMyDate)"}&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;+Count({&amp;lt;CreatedDate={"&amp;lt;=$(vMyDate)"},ClosedDate=&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;-Count({&amp;lt;CreatedDate={"&amp;lt;=$(vMyDate)"},ClosedDate={'*'}&amp;gt;}ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 15:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71134#M607304</guid>
      <dc:creator>anders_thorngaa</dc:creator>
      <dc:date>2018-03-22T15:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71135#M607305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2940"&gt;Creating Reference Dates for Intervals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 21:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71135#M607305</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-03-22T21:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71136#M607306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank! - I will check my data and post a reply, please don't be offended if it takes a couple of days!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 07:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71136#M607306</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2018-03-23T07:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71137#M607307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - I'll try it out. Please don't be offended if it takes a few days!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 07:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71137#M607307</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2018-03-23T07:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71138#M607308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco&lt;/P&gt;&lt;P&gt;Thanks! - I will look into it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 07:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71138#M607308</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2018-03-23T07:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71139#M607309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_295664_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197299_QlikCommunity_Thread_295664_Pic1.JPG" style="height: 242px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15218190835185893 jive_text_macro" jivemacro_uid="_15218190835185893"&gt;
&lt;P&gt;tabWO:&lt;/P&gt;
&lt;P&gt;LOAD ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatedDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClosedDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumberHash128(DayName(CreatedDate),Alt(DayName(ClosedDate),Today())) as IntervalID&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="319354" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2061-295664-1457383-319354/SampleWorkorders.xlsx"&gt;https://community.qlik.com/servlet/JiveServlet/download/1457383-319354/SampleWorkorders.xlsx&lt;/A&gt;&lt;SPAN&gt;] (ooxml, embedded labels, table is Sheet1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabDates:&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IntervalID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(CreatedDate,IterNo()-1) as Date&lt;/P&gt;
&lt;P&gt;Resident tabWO&lt;/P&gt;
&lt;P&gt;While CreatedDate+IterNo()-1 &amp;lt;= Alt(ClosedDate,Today());&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71139#M607309</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-03-23T15:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Open workorder statistics</title>
      <link>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71140#M607310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! I've checked a few dates and it seems to compute. I have changed the code a bit to understand it, and reckon that the autonumberhash128 is due to memory conservation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question has been answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 21:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-workorder-statistics/m-p/71140#M607310</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2018-03-26T21:40:57Z</dc:date>
    </item>
  </channel>
</rss>

