<?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: Problems with the Last Transaction Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93878#M757367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please follow below link to upload the file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2018 15:49:31 GMT</pubDate>
    <dc:creator>trdandamudi</dc:creator>
    <dc:date>2018-10-02T15:49:31Z</dc:date>
    <item>
      <title>Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93869#M757358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem that is taking me several days and I'm not sure why it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the one hand I have a set analysis (which works perfectly) and returns the combination month of the last movement with units&amp;gt; 0 (Example 2018 Jan) of my products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum)) &amp;amp; '' &amp;amp; Year (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;If I put it in a variable (vG.App.Last.Amortization.YearMonthText), Sense calculates it correctly and returns me for each product the last month in which it had movement. If I want to use it in another Set analysis like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if (Type &amp;lt;&amp;gt; 'A', $ (v.KPI.Current.Depreciation.Units), if (Type = 'A', Sum ({&amp;lt;[Data type] = {'4'}, [MonthYearText] = { "$ (vG.App.Last.Amortization.YearMonthText)"}, Vision = {'Contract'}&amp;gt;} [Actual units amortization])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does not return anything to me and the only way that it works is that it modifies my variable vG.App.Last.Amortization.YearMonthText and adds it = at the beginning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;= Month (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum)) &amp;amp; '' &amp;amp; Year (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The problem is that then only the highest date of all movements is calculated and the products whose amortization date is lower than the highest date of the whole set do not appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Any idea what I'm doing wrong ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93869#M757358</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93870#M757359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how your If(Type is associated with your desired months, but in general it looks like you want a different value per a product(?) dimension and $ sign expansions are evaluated at the chart level&amp;nbsp; and not on a row by row value of your dimension. Maybe you can include it as a calculated dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93870#M757359</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2018-09-20T16:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93871#M757360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piet...thanks for your fast answer:&lt;/P&gt;&lt;P&gt;Regarding &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;it looks like you want a different value per a product(?) Yes exactly&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;Maybe you can include it as a calculated dimension? I did it...in fact if I use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum)) &amp;amp; '' &amp;amp; Year (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;as a caculated dimension I can see the right month year combination for every row...The problem comes when I try to use it in the expression that recovers the value for every product. Like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if (Type &amp;lt;&amp;gt; 'A', $ (v.KPI.Current.Depreciation.Units), if (Type = 'A', Sum ({&amp;lt;[Data type] = {'4'}, [MonthYearText] = { &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Month (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum)) &amp;amp; '' &amp;amp; Year (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum))&lt;/STRONG&gt;&lt;/SPAN&gt;"}, Vision = {'Contract'}&amp;gt;} [Actual units amortization])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I can't get any answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 07:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93871#M757360</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2018-09-21T07:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93872#M757361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes well, if this is already a calculated dimension, you don't need it in the if(Type='A' part of your expression. I don't know what's in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;v.KPI.Current.Depreciation.Units and how your If(Type&amp;lt;&amp;gt;'A' relates to your calculated dimension. Try to break it down in steps and see what does not work e.g. leave out the if(type for both cases.&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'm currently out of office and away from my qv install, so you might have to wait a while for an answer from me. Others hopefully help in the meantime.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 18:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93872#M757361</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2018-09-21T18:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93873#M757362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give a try on the below:&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;if (Type &amp;lt;&amp;gt; 'A', $ (v.KPI.Current.Depreciation.Units), if (Type = 'A', Sum ({&amp;lt;[Data type] = {'4'}, [MonthYearText] = { &lt;STRONG&gt;"=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Month (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum)) &amp;amp; '' &amp;amp; Year (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum))&lt;/STRONG&gt;&lt;/SPAN&gt;"}, Vision = {'Contract'}&amp;gt;} [Actual units amortization])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 19:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93873#M757362</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-09-21T19:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93874#M757363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your help Piet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 07:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93874#M757363</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2018-09-25T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93875#M757364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot fot you answer Thirumala.&lt;/P&gt;&lt;P&gt;Here my results.&lt;/P&gt;&lt;P&gt;at column marked with a number 1 I just used the Month year determination that you suggested me that works perfectly&lt;/P&gt;&lt;P&gt;Month (Max ({&amp;lt;[Unidades reales amortizacion] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum)) &amp;amp; ' ' &amp;amp; Year (Max ({&amp;lt;[Unidades reales amortizacion] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214385_Qlik.JPG" style="width: 620px; height: 200px;" /&gt;&lt;/P&gt;&lt;P&gt;The problema comes when I used the whole expresión&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Tipo&amp;lt;&amp;gt;'A',$(v.KPI.Current.Depreciation.Units),if(Tipo='A',Sum({&amp;lt;[Data type]={'4'},[MonthYearText]=&lt;/P&gt;&lt;P&gt;{ "=Month (Max ({&amp;lt;[Unidades reales amortizacion] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum)) &amp;amp; ' ' &amp;amp; Year (Max ({&amp;lt;[Unidades reales amortizacion] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum))"},Vision = {'Contract'}&amp;gt;}[Unidades reales amortizacion])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look, when is used here, the expresion before doesn't return any combination of month year....just the expresión in text format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's my common problema...If I put the month year expresión in a varaible it does not return anything to me and the only way that it works is that it modifies my variable vG.App.Last.Amortization.YearMonthText and adds it = at the beginning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;= Month (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum)) &amp;amp; '' &amp;amp; Year (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The problem is that then only the highest date of all movements is calculated and the products whose amortization date is lower than the highest date of the whole set do not appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 08:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93875#M757364</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2018-09-25T08:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93876#M757365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be helpful if you can share a sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 15:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93876#M757365</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-09-25T15:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93877#M757366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks a lot Thirumala.for spendi!ng some time to help me. How can I attach my sample to the message? I can't see the way to do it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 15:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93877#M757366</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2018-10-02T15:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93878#M757367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please follow below link to upload the file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 15:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93878#M757367</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-10-02T15:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93879#M757368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning Thirumala and thanks again for you time...Here my simple:&lt;/P&gt;&lt;P&gt;I have created a screen selection called test where I select product type A &amp;amp; Vision=contract&lt;/P&gt;&lt;P&gt;I have created a variable called vG.App.Last.Amortization.YearMonthText that gets the last month with movement for every product.&lt;/P&gt;&lt;P&gt;and seems to work as you can see at the last column.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214964_Captura.JPG" style="width: 620px; height: 241px;" /&gt;&lt;/P&gt;&lt;P&gt;The goal is that at column Calculation the system should show the amount of units for the last month with movement (for the first product ID if should be 2). No idea why it doesn't work because the function seems to be correct...Any idea ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 06:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93879#M757368</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2018-10-03T06:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93880#M757369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You attached a Qliksense file but I do not have Qliksense on my side. Hope someone will answer this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: You marked my upload link as correct answer and please remove it because it is not the answer and other users might get confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 11:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93880#M757369</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-10-03T11:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93881#M757370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Thirumala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the simple in Qlikview format. I have created a selection called test. Last colum is the variable that gets the last month with movement (that Works correctly). Calculation should show the value(Unidades) from the last month (4), but is always 0.&amp;nbsp; Any idea what am I doing wrong??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215119_Captura.JPG" style="width: 620px; height: 237px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2018 14:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93881#M757370</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2018-10-04T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93882#M757371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="215150" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215150_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;If the above is correct then you need to just add an equal sign ( = ) in front of your variable as shown below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;replace&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Capitalize&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;month&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[YearMonthNum]&lt;/SPAN&gt;)))&amp;amp;' '&amp;amp;&lt;SPAN style="color: #0000ff;"&gt;Year&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[YearMonthNum]&lt;/SPAN&gt;)),'.','')&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG __jive_id="215152" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/215152_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When you get a chance please go over this link: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/04/the-magic-of-variables"&gt;&lt;SPAN style="color: #0000ff; text-decoration: underline;"&gt;The Magic of Variables&lt;/SPAN&gt;&lt;/A&gt; Hope this helps..&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2018 15:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93882#M757371</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-10-04T15:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93883#M757372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning Thirumala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did it works for you ? I just get this error when I did the changes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215176_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 06:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93883#M757372</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2018-10-05T06:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93884#M757373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is working on my side and attached is the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 11:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93884#M757373</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-10-05T11:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93885#M757374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So weird...it seems&amp;nbsp; to work...but unselect the product ID and see what happens.... I already have this issue at the&amp;nbsp; beggining&lt;/P&gt;&lt;P&gt;If I put the month year expresión in a varaible it does not return anything to me and the only way that it works is that it modifies my variable vG.App.Last.Amortization.YearMonthText and adds it = at the beginning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;= Month (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum)) &amp;amp; '' &amp;amp; Year (Max ({&amp;lt;[Units] = {'&amp;gt; 0'}&amp;gt;} YearMonthNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The problem is that then only the highest date of all movements is calculated and the products whose amortization date is lower than the highest date of the whole set do not appear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 11:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93885#M757374</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2018-10-05T11:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93886#M757375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry not able to follow... If I unselect the "Product ID" then what is your expected output? Can you share a screen shot of the output please..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I unselected then the max month is "Jul 2016" and for that month "[Unidades reales amortizacion]" it is 0 (zero) and that is the reason it is showing 0 in "Calculation" field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;When I am using the following it looks like it is working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Capitalize&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Unidades reales amortizacion]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={0}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[YearMonthNum]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&amp;amp;' '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Unidades reales amortizacion]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={0}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[YearMonthNum]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'.','') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215247_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 12:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93886#M757375</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-10-05T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the Last Transaction Date</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93887#M757376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thirumala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is getting the units from the last movement of every product,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="result1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215339_result1.jpg" style="width: 620px; height: 158px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so calculation should looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="result2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/215340_result2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 09:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-Last-Transaction-Date/m-p/93887#M757376</guid>
      <dc:creator>juan-carlos</dc:creator>
      <dc:date>2018-10-08T09:31:16Z</dc:date>
    </item>
  </channel>
</rss>

