<?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: Display Max transaction or max tran date in calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97921#M751673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will check for the first result and update you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2018 04:53:08 GMT</pubDate>
    <dc:creator>tharanikannan</dc:creator>
    <dc:date>2018-11-01T04:53:08Z</dc:date>
    <item>
      <title>Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97916#M751668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assuming i have this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 293px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="101"&gt;CCTYPE&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="53"&gt;TranNo&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;amount&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="75"&gt;TranDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902329AB&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902329AB&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;02/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902329AB&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;05/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902330AB&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902330AB&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;12/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902330AB&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;13/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902331AC&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;22/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902331AC&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;23/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902331AC&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;24/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;K902331AC&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;25/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I'm trying to achieve these result in calculated dimension as per below in pivot table or straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st desired result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="218"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="101"&gt;CCTYPE&lt;/TD&gt;&lt;TD width="53"&gt;Max(tranno)&lt;/TD&gt;&lt;TD width="64"&gt;=SUM(Amount)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;K902329AB&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD align="right"&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;K902330AB&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;K902331AC&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Desired result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="300"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;CCTYPE&lt;/TD&gt;&lt;TD width="133"&gt;date of Max(tranno)&lt;/TD&gt;&lt;TD width="103"&gt;=SUM(Amount)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;K902329AB&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;05/02/2010&lt;/TD&gt;&lt;TD align="right"&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;K902330AB&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;13/02/2010&lt;/TD&gt;&lt;TD align="right"&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;K902331AC&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;25/02/2010&lt;/TD&gt;&lt;TD align="right"&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how?&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/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97916#M751668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97917#M751669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asrif, &lt;/P&gt;&lt;P&gt;Please use the calculated dimension for date as &lt;/P&gt;&lt;P&gt;=aggr(date(max(TranDate),'DD/MM/YYYY'),CCTYPE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Calculated Dimension issue.JPG" class="jive-image image-1" src="/legacyfs/online/217258_Calculated Dimension issue.JPG" style="height: 248px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 03:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97917#M751669</guid>
      <dc:creator>tharanikannan</dc:creator>
      <dc:date>2018-11-01T03:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97918#M751670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;possible to show the 1st desired result? is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 03:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97918#M751670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-01T03:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97919#M751671</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;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;=FirstSortedValue(TranDate, -TranNo)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="217260" alt="Capture.JPG" class="jive-image image-1" height="175" src="https://community.qlik.com/legacyfs/online/217260_Capture.JPG" style="height: 175.61px; width: 539px;" width="539" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 04:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97919#M751671</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-11-01T04:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97920#M751672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I missed that you wanted the same in calculated dimension, may I know the purpose of the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 04:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97920#M751672</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-11-01T04:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97921#M751673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will check for the first result and update you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 04:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97921#M751673</guid>
      <dc:creator>tharanikannan</dc:creator>
      <dc:date>2018-11-01T04:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97922#M751674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please use this in your dimension for first output&lt;/P&gt;&lt;P&gt;=aggr(max(TranNo),CCTYPE)&lt;IMG alt="Calculated Dimension issue1.JPG" class="jive-image image-1" src="/legacyfs/online/217262_Calculated Dimension issue1.JPG" style="height: 317px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 04:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97922#M751674</guid>
      <dc:creator>tharanikannan</dc:creator>
      <dc:date>2018-11-01T04:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97923#M751675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the first was just to get the max from the same column, &lt;/P&gt;&lt;P&gt;the second was actually to get the value from the max of other column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From these scenario , I understand that both can work as we are using max of transaction date or max of transaction number. but your solution with firstsortedvalue seems the one i'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Tresesco B and thanks to Tharani as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 05:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97923#M751675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-01T05:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97924#M751676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was a simple table, the actual table i have was more complicated and joined with several keys with another table. I wonder why the FirstSortedvalue or just using Max(tranno) didnt work. Those this only work when all the information is in one table and not connected to other table? ( e.g. the tranno&amp;nbsp; information is in another table and joined with CCTYPE as key. and the trandate is in another table.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 05:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97924#M751676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-01T05:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97925#M751677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it's not necessary that they be in the same table. However, the association and mapping type, i.e- one-to-one/one-to-many/many-to-many matters. Without knowing about your data model it would be hard to troubleshoot. However, you could give a try with DISTINCT keyword like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 16px;"&gt;=FirstSortedValue(DISTINCT TranDate, -TranNo)&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 05:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97925#M751677</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-11-01T05:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97926#M751678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Say if the table for the transaction is Many to Many?&amp;nbsp; the firstsortedvalue cant work?&lt;/P&gt;&lt;P&gt;Later i will try to replicate using a few samples and see if this can be done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 01:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97926#M751678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-02T01:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Display Max transaction or max tran date in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97927#M751679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i did load a sample of the data in new to qliksense, &lt;/P&gt;&lt;P&gt;can u access it and see how the firstsortedvalue can work in that many to one or many to many data set???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 03:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Max-transaction-or-max-tran-date-in-calculated-dimension/m-p/97927#M751679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-05T03:16:11Z</dc:date>
    </item>
  </channel>
</rss>

