<?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: Urgent : Get the value based on hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84980#M458599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, across 2 - 8am. the one with the value &amp;gt; 0 should display first&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 07:36:29 GMT</pubDate>
    <dc:creator>n1ef5ng1</dc:creator>
    <dc:date>2018-02-12T07:36:29Z</dc:date>
    <item>
      <title>Urgent : Get the value based on hours</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84978#M458597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to the attached for data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to code in a script on the following. do note that i have to create a table with group by function so i therefore need to use sum of the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to come out with a logic to calculate the daily volume based on hour (02 03 04 05 06 07 08). as you can see that there are null values on certain hours, i would like to take the next hour as the final figure.&lt;/P&gt;&lt;P&gt;The figure to get the value is sum(value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my logic&lt;/P&gt;&lt;P&gt;sum(if(BLODR_Hour = '02' and not isnull(BLODR_Backlog_DS),BLODR_Total_Items&lt;/P&gt;&lt;P&gt;if(BLODR_Hour = '03' and not isnull(BLODR_Backlog_DS),BLODR_Total_Items,&lt;/P&gt;&lt;P&gt;if(BLODR_Hour = '04' and not isnull(BLODR_Backlog_DS),BLODR_Total_Items,&lt;/P&gt;&lt;P&gt;if(BLODR_Hour = '05' and not isnull(BLODR_Backlog_DS),BLODR_Total_Items,&lt;/P&gt;&lt;P&gt;if(BLODR_Hour = '06' and not isnull(BLODR_Backlog_DS),BLODR_Total_Items,&lt;/P&gt;&lt;P&gt;if(BLODR_Hour = '07' and not isnull(BLODR_Backlog_DS),BLODR_Total_Items,&lt;/P&gt;&lt;P&gt;if(BLODR_Hour = '08' and not isnull(BLODR_Backlog_DS),BLODR_Total_Items))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however the above code will actually do a summation of 02 - 08 hours. My idea is that on 12.2.18, it should display 6499, 11.2 will be 4032, feb 7th will be 1379. key condition is whichever comes first and have value &amp;gt; 0 , i am stucked in this for almost a day&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193054_Capture.PNG" style="height: 314px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 07:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84978#M458597</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2018-02-12T07:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : Get the value based on hours</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84979#M458598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean, every day should have single value (first &amp;gt;0 value) across all hours?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 07:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84979#M458598</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T07:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : Get the value based on hours</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84980#M458599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, across 2 - 8am. the one with the value &amp;gt; 0 should display first&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 07:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84980#M458599</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2018-02-12T07:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : Get the value based on hours</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84981#M458600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193070_Capture.PNG" style="height: 522px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;highlighted yellow are the numbers that i would want to display. first &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 07:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84981#M458600</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2018-02-12T07:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : Get the value based on hours</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84982#M458601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;highlighted yellow are the numbers that i would want to &lt;STRONG&gt;display. first&lt;/STRONG&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;first?&lt;/STRONG&gt; what about rest of the hours? Would a chart solution work for you or you have to do it in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 07:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84982#M458601</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T07:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : Get the value based on hours</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84983#M458602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ignore the rest of the hours (between 2-8am whichever comes first). must be in script, cant do it in table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 07:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84983#M458602</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2018-02-12T07:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : Get the value based on hours</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84984#M458603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193077" alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193077_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CrossTable(Hours, Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Date, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [02], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [03], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [04], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [05], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [06], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [07], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [08]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[...\CH01_20180212_151338.xls]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(biff, embedded labels, table is Sheet1$);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(if(Data&amp;gt;0, Data), If (Data&amp;gt;0,num#(Hours,'#0'))) as FirstData&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident t1 Group By Date;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 08:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84984#M458603</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T08:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : Get the value based on hours</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84985#M458604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot! is correct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-Get-the-value-based-on-hours/m-p/84985#M458604</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2018-02-12T09:11:58Z</dc:date>
    </item>
  </channel>
</rss>

