<?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: Sum Values after a Specific Date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442238#M34928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the beggining i had different variables for the PL_TIME_HOUR and those represent when the events in table T1 and table T2 occured in time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i have 2 variables about time, how can i correlate both in a unique time variable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Sorry for the late reply, though help much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 17:45:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-12T17:45:01Z</dc:date>
    <item>
      <title>Sum Values after a Specific Date</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442235#M34925</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;I have two resident tables with the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;Load inline&lt;/P&gt;&lt;P&gt;[PL_PLAYER_ID, PL_TIME_HOUR, GM_NR_BETS,&lt;/P&gt;&lt;P&gt;'A', 20171009, 10,&lt;/P&gt;&lt;P&gt;'B', 20171009, 20,&lt;/P&gt;&lt;P&gt;'A', 20171020, 25,&lt;/P&gt;&lt;P&gt;'A', 20171021, 10];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2;&lt;/P&gt;&lt;P&gt;Load inline&lt;/P&gt;&lt;P&gt;[PL_PLAYER_ID, PL_TIME_HOUR, PL_OPER_TYPE, PL_VALUE,&lt;/P&gt;&lt;P&gt;'A', 20171005,'C',1000,&lt;/P&gt;&lt;P&gt;'B', 20171008,'C',500,&lt;/P&gt;&lt;P&gt;'A',20171012,'D',100,&lt;/P&gt;&lt;P&gt;'A',2017&lt;SPAN style="font-size: 10pt;"&gt;1018,'D',150,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'B',20171019,'D',10]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm tring to build a measure which will give the sum of GM_NR_BETS after MAX(PL_TIME_HOUR) when PL_OPER_TYPE='D' for a specific PL_PLAYER_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following, but it always return me 0&lt;/P&gt;&lt;P&gt;SUM(IF(TP_TIME_HOUR &amp;gt; aggr(MAX({$&amp;lt;PL_OPER_TYPE={'DEBITO'}&amp;gt;}TP_TIME_HOUR),PL_PLAYER_ID), GM_NR_BETS, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was expecting the following:&lt;/P&gt;&lt;P&gt;For PL_PLAYER_ID='A' ==&amp;gt; [&lt;SPAN style="font-size: 13.3333px;"&gt;sum of GM_NR_BETS after MAX(PL_TIME_HOUR) when PL_OPER_TYPE='D'] = 35&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For PL_PLAYER_ID='B' ==&amp;gt; [&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum of GM_NR_BETS after MAX(PL_TIME_HOUR) when PL_OPER_TYPE='D'] = 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can anyone help with this Measure building, please ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Francisco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 23:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442235#M34925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-06T23:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Values after a Specific Date</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442236#M34926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Francisco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me understand your requirement: PL_TIME_HOUR appears on both tables so they are associated and you want the bets after the max of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PL_TIME_HOUR&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;? As the field is the same there will be nothing after the max and everything before the max&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;Can you please confirm?&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;Cheers,&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;Luis&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 00:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442236#M34926</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-07T00:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Values after a Specific Date</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442237#M34927</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;I assume PL_TIME_HOUR fields are actually different on both table. Otherwise there is no match between two table. I guess the date field on T2 is a referance date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;Load inline&lt;/P&gt;&lt;P&gt;[PL_PLAYER_ID, PL_TIME_HOUR, GM_NR_BETS,&lt;/P&gt;&lt;P&gt;'A', 20171009, 10,&lt;/P&gt;&lt;P&gt;'B', 20171009, 20,&lt;/P&gt;&lt;P&gt;'A', 20171020, 25,&lt;/P&gt;&lt;P&gt;'A', 20171021, 10];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2;&lt;/P&gt;&lt;P&gt;Load inline&lt;/P&gt;&lt;P&gt;[PL_PLAYER_ID, PL_TIME_HOUR_REF, PL_OPER_TYPE, PL_VALUE,&lt;/P&gt;&lt;P&gt;'A', 20171005,'C',1000,&lt;/P&gt;&lt;P&gt;'B', 20171008,'C',500,&lt;/P&gt;&lt;P&gt;'A',20171012,'D',100,&lt;/P&gt;&lt;P&gt;'A',20171018,'D',150,&lt;/P&gt;&lt;P&gt;'B',20171019,'D',10]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure : SUM(AGGR(SUM({&amp;lt;PL_TIME_HOUR={"&amp;gt;$(=MAX(PL_TIME_HOUR_REF))"},PL_OPER_TYPE={'D'}&amp;gt;}GM_NR_BETS),PL_PLAYER_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="186041" alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186041_Untitled.png" style="height: 275px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not showing PL_PLAYER_ID when Total GM_NR_BET is zero not a problem then you can remove the aggr part of the measure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SUM({&amp;lt;PL_TIME_HOUR={"&amp;gt;$(=MAX(PL_TIME_HOUR_REF))"},PL_OPER_TYPE={'D'}&amp;gt;}GM_NR_BETS)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 05:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442237#M34927</guid>
      <dc:creator>kaanerisen</dc:creator>
      <dc:date>2017-12-07T05:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Values after a Specific Date</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442238#M34928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the beggining i had different variables for the PL_TIME_HOUR and those represent when the events in table T1 and table T2 occured in time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i have 2 variables about time, how can i correlate both in a unique time variable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Sorry for the late reply, though help much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 17:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442238#M34928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T17:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Values after a Specific Date</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442239#M34929</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If i have 2 representing the time when the events occurred , how can i correlate both in a unique time variable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks in advance for the support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Cheers,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Francisco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P.S.: Sorry for the late reply, though help much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 17:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442239#M34929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T17:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Values after a Specific Date</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442240#M34930</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;Can you please explain the difference between the two dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the meantime, please review this post as it could be helpful for this design &lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 23:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442240#M34930</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-12T23:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Values after a Specific Date</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442241#M34931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that post helped a lot and solved my problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 23:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Values-after-a-Specific-Date/m-p/1442241#M34931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T23:45:56Z</dc:date>
    </item>
  </channel>
</rss>

