<?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 help with measurement generation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118805#M18299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to generate a measure for a KPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For this I am using 3 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 Schedule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 Status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the measure I need to count those elements that have the Pending Status and that the Window and Time difference is greater than 0 and less than 0.0313&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to do it this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count ({$ &amp;lt;Status = {'PENDIENTE'}, [Window-Timetable] = {"&amp;gt; 0 &amp;lt;= 0.0313"}&amp;gt;} Status)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am only managing to filter those that have Pending Status, I do not know if the problem is how I am defining the difference between Window and Schedule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The 0.0313 I define it as time difference, for example [20: 00-19: 30]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 23:57:38 GMT</pubDate>
    <dc:creator>oskorn29</dc:creator>
    <dc:date>2018-09-11T23:57:38Z</dc:date>
    <item>
      <title>help with measurement generation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118805#M18299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to generate a measure for a KPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For this I am using 3 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 Schedule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 Status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the measure I need to count those elements that have the Pending Status and that the Window and Time difference is greater than 0 and less than 0.0313&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to do it this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count ({$ &amp;lt;Status = {'PENDIENTE'}, [Window-Timetable] = {"&amp;gt; 0 &amp;lt;= 0.0313"}&amp;gt;} Status)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am only managing to filter those that have Pending Status, I do not know if the problem is how I am defining the difference between Window and Schedule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The 0.0313 I define it as time difference, for example [20: 00-19: 30]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 23:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118805#M18299</guid>
      <dc:creator>oskorn29</dc:creator>
      <dc:date>2018-09-11T23:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: help with measurement generation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118806#M18300</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;try using interval for the difference between two hours and do it in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load*,&lt;/P&gt;&lt;P&gt;interval (Window-Timetable) as Difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you must check the differences using a table.&lt;/P&gt;&lt;P&gt;If the result is right you can do the&amp;nbsp; formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count ({$ &amp;lt;Status = {'PENDIENTE'}, [Difference] = {"&amp;gt; 0 &amp;lt;= 0.0313"}&amp;gt;} Status)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I think you can't use set analysis if you don't pre-calculate the difference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Bye&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118806#M18300</guid>
      <dc:creator>captain89</dc:creator>
      <dc:date>2018-09-13T10:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: help with measurement generation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118807#M18301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Maybe this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(if(Status = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'PENDIENTE',&lt;/SPAN&gt; if((&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Window-Timetable ) &lt;/SPAN&gt;&amp;gt; 0,if(&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Window-Timetable )&lt;/SPAN&gt;&amp;lt;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;0.0313&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Status&lt;/SPAN&gt;))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 11:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118807#M18301</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2018-09-13T11:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: help with measurement generation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118808#M18302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((Window-Timetable ) &amp;gt; 0 and (Window-Timetable )&amp;lt;= 0.0313, Count ({$ &amp;lt;Status = {'PENDIENTE'}&amp;gt;} Status))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 12:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118808#M18302</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-09-13T12:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: help with measurement generation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118809#M18303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already managed to generate my KPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 21:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118809#M18303</guid>
      <dc:creator>oskorn29</dc:creator>
      <dc:date>2018-09-19T21:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: help with measurement generation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118810#M18304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you&amp;nbsp; mark the most useful suggestion, please? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 09:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118810#M18304</guid>
      <dc:creator>captain89</dc:creator>
      <dc:date>2018-09-20T09:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: help with measurement generation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118811#M18305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You should create&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; a dimension [Window-Timetable] in the script, so that you can use it directly. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 10:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-measurement-generation/m-p/118811#M18305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-20T10:28:26Z</dc:date>
    </item>
  </channel>
</rss>

