<?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: Cross table problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041118#M350366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny.Its working.&lt;/P&gt;&lt;P&gt;Could you tell me , use of "Only" in aggr?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jan 2016 12:25:47 GMT</pubDate>
    <dc:creator>narender123</dc:creator>
    <dc:date>2016-01-07T12:25:47Z</dc:date>
    <item>
      <title>Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041114#M350362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using a cross table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DECLARATION_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CUSTOMS_VALUE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITEM_NO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORT_DUTY_EXEMPTED, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCISE_DUTY_EXEMPTED &lt;/P&gt;&lt;P&gt;FROM TABLEA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression in report:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMS_VALUE&lt;/SPAN&gt;) is showing right.&lt;/P&gt;&lt;P&gt;but when use cross table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrossTable(TAX_CODE,TAX,3)&lt;/P&gt;&lt;P&gt;NEW:&lt;/P&gt;&lt;P&gt;LOAD DECLARATION_ID,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTOMS_VALUE&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITEM_NO, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORT_DUTY_EXEMPTED, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCISE_DUTY_EXEMPTED &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RESIDENT &lt;SPAN style="font-size: 13.3333px;"&gt;TableA;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DROP TABLE &lt;SPAN style="font-size: 13.3333px;"&gt;TableA;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Expression in report:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMS_VALUE&lt;/SPAN&gt;) is showing wrong.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Why after cross table &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;CUSTOMS_VALUE&lt;/STRONG&gt; is showing wrong??&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Narender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 10:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041114#M350362</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2016-01-07T10:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041115#M350363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your excel table or sample qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tax Code exist into your table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why you are applying Cross Table on same table after taking resident of same table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/45425"&gt;What is cross table? Where it can be used?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 10:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041115#M350363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T10:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041116#M350364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because after the CrossTable() Load&amp;nbsp; the field CUSTOMS_VALUE will repeat and you will get a much higher number. Try this after CrossTable() Load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Only(CUSTOMS_VALUE), &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;DECLARATION_ID))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 11:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041116#M350364</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-07T11:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041117#M350365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use aggr function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041117#M350365</guid>
      <dc:creator />
      <dc:date>2016-01-07T12:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041118#M350366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny.Its working.&lt;/P&gt;&lt;P&gt;Could you tell me , use of "Only" in aggr?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041118#M350366</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2016-01-07T12:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041119#M350367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So since the same number for CUSTOMS_VALUE is repeating for a single DECLARATION_ID, I just used the only function to get its value. You can use &lt;STRONG&gt;Avg(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CUSTOMS_VALUE) &lt;/STRONG&gt;or &lt;STRONG&gt;Sum(DISTINCT CUSTOMS_VALUE) &lt;/STRONG&gt;and they will give you the exact same output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Aggr(Only(CUSTOMS_VALUE), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DECLARATION_ID))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Aggr(Avg(CUSTOMS_VALUE), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DECLARATION_ID))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Aggr(Sum(DISTINCT CUSTOMS_VALUE), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DECLARATION_ID))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041119#M350367</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-07T12:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041120#M350368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041120#M350368</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2016-01-07T12:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041121#M350369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Balraj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041121#M350369</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2016-01-07T12:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041122#M350370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your issue is resolved, can you close the thread by marking correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041122#M350370</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-07T12:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041123#M350371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not done anything, say thanks to Sunny&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041123#M350371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041124#M350372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-table-problem/m-p/1041124#M350372</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2016-01-07T12:53:11Z</dc:date>
    </item>
  </channel>
</rss>

