<?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/1325437#M614192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually your answer is quite close to perfect ,it works too, just some confusions&lt;/P&gt;&lt;P&gt;1. what is the different between SET and LET&lt;/P&gt;&lt;P&gt;2. why you need a "tmp" table rather then load from Excel directly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 09:37:30 GMT</pubDate>
    <dc:creator>woshua5550</dc:creator>
    <dc:date>2017-08-01T09:37:30Z</dc:date>
    <item>
      <title>cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325433#M614186</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;&lt;/P&gt;&lt;P&gt;plz look at my source data first&lt;/P&gt;&lt;P&gt;&lt;IMG alt="微信截图_20170801162148.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172004_微信截图_20170801162148.png" style="width: 620px; height: 98px;" /&gt;&lt;/P&gt;&lt;P&gt;I would like to load it by cross table function , here is my script&lt;/P&gt;&lt;P&gt;&lt;IMG alt="微信截图_20170801162333.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/172005_微信截图_20170801162333.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I got the result as below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="微信截图_20170801162248.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/172006_微信截图_20170801162248.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model "C" and "D" just disappeared because they contains no value , but actually I need to load them into my qvw file and just leave the amount as null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should I change my script ? plz help . thx ~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325433#M614186</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-08-01T08:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325434#M614188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15015776366155501" jivemacro_uid="_15015776366155501"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15015776476141473" jivemacro_uid="_15015776476141473" modifiedtitle="true"&gt;
&lt;P&gt;SET NullValue = 0;&lt;BR /&gt;NullAsValue *;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tmp:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;FROM [lib://lib/1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is 工作表1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;crosstable (Model, Amount, 1)&lt;BR /&gt;LOAD * RESIDENT tmp;&lt;/P&gt;
&lt;P&gt;DROP TABLE tmp;&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15015776424213297" jivemacro_uid="_15015776424213297"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325434#M614188</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-08-01T08:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325435#M614189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course you can set NULL to any other value - even empty string: SET NullValue = '';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325435#M614189</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-08-01T08:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325436#M614191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&amp;nbsp; thank you for your reply&lt;/P&gt;&lt;P&gt;but it seems that empty string not equals to NULL value , I notice the information density of "Amount" is 100% which means field "Amount" contains no null value&lt;/P&gt;&lt;P&gt;anyway to make it as NULL ?&amp;nbsp; I tried "SET NullValue = Null()" and "LET NullValue = Null()" but both don't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325436#M614191</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-08-01T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325437#M614192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually your answer is quite close to perfect ,it works too, just some confusions&lt;/P&gt;&lt;P&gt;1. what is the different between SET and LET&lt;/P&gt;&lt;P&gt;2. why you need a "tmp" table rather then load from Excel directly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325437#M614192</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-08-01T09:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: cross table problem</title>
      <link>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325438#M614194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. &lt;A href="http://www.qlikviewaddict.com/2012/02/set-vs-let.html" title="http://www.qlikviewaddict.com/2012/02/set-vs-let.html"&gt;QlikView Addict: SET vs. LET&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. It looks like Crosstab is taking a shotcut, and omits Nulls before NullAsValue is applied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cross-table-problem/m-p/1325438#M614194</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-08-01T09:50:50Z</dc:date>
    </item>
  </channel>
</rss>

