<?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: How to have numeric values in a cross table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130269#M634797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Why?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How can I have my Year field as a numeric value?&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The CROSSTABLE LOAD prefix will transform your field names to text values, so you need to interpret numbers using an &lt;STRONG&gt;&lt;EM&gt;interpretation&lt;/EM&gt;&lt;/STRONG&gt; function like Num#().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num() is a &lt;STRONG&gt;&lt;EM&gt;formatting&lt;/EM&gt;&lt;/STRONG&gt; function, to format the text representation of numbers (which you don't have).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that you want to use the Date#() interpretation function. It will return a numeric representation, but with a internal date value, which I seldom use in my applications (edit: for year fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps to understand better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 10:27:59 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-06-16T10:27:59Z</dc:date>
    <item>
      <title>How to have numeric values in a cross table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130266#M634794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to load the crosstable&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-06-16_120759.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128106_2016-06-16_120759.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Source:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;MyField, 2010, 2011, 2012&lt;/P&gt;
&lt;P&gt;Test, x, y, z&lt;/P&gt;
&lt;P&gt;Test2, xx, yy, zz&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Cross:&lt;/P&gt;
&lt;P&gt;CrossTable(Year, Value)&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp; MyField, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; [2010], &lt;/P&gt;
&lt;P&gt;&amp;nbsp; [2011], &lt;/P&gt;
&lt;P&gt;&amp;nbsp; [2012]&lt;/P&gt;
&lt;P&gt;RESIDENT Source;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ForceNum:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp; num(Year) AS Forced.Year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Year AS Forced.Year_origin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MyField AS Forced.MyField,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Value AS Forced.Value&lt;/P&gt;
&lt;P&gt;Resident Cross;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't success to have the "Year" filed as a numeric value.&lt;/P&gt;&lt;P&gt;Even the "num(Year)" returns nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-06-16_120914.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/128107_2016-06-16_120914.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I have my Year field as a numeric value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 10:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130266#M634794</guid>
      <dc:creator>nicolas_martin</dc:creator>
      <dc:date>2016-06-16T10:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to have numeric values in a cross table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130267#M634795</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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ForceNum:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; num&lt;SPAN style="color: #ff0000;"&gt;#&lt;/SPAN&gt;(Year) AS Forced.Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; Year AS Forced.Year_origin,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; MyField AS Forced.MyField,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; Value AS Forced.Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident Cross;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UPDATE: Sample attached&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;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128109_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 10:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130267#M634795</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-16T10:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to have numeric values in a cross table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130268#M634796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;ForceNum:&lt;/STRONG&gt;&lt;/P&gt;&lt;P 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;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P 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;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;Date&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;#&lt;/SPAN&gt;(&lt;/SPAN&gt;Year&lt;SPAN style="color: #ff0000;"&gt;, 'YYYY'&lt;/SPAN&gt;) AS Forced.Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P 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;&amp;nbsp; Year AS Forced.Year_origin,&lt;/STRONG&gt;&lt;/P&gt;&lt;P 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;&amp;nbsp; MyField AS Forced.MyField,&lt;/STRONG&gt;&lt;/P&gt;&lt;P 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;&amp;nbsp; Value AS Forced.Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P 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;Resident Cross;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 10:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130268#M634796</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-16T10:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to have numeric values in a cross table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130269#M634797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Why?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How can I have my Year field as a numeric value?&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The CROSSTABLE LOAD prefix will transform your field names to text values, so you need to interpret numbers using an &lt;STRONG&gt;&lt;EM&gt;interpretation&lt;/EM&gt;&lt;/STRONG&gt; function like Num#().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num() is a &lt;STRONG&gt;&lt;EM&gt;formatting&lt;/EM&gt;&lt;/STRONG&gt; function, to format the text representation of numbers (which you don't have).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that you want to use the Date#() interpretation function. It will return a numeric representation, but with a internal date value, which I seldom use in my applications (edit: for year fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps to understand better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 10:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130269#M634797</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-16T10:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to have numeric values in a cross table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130270#M634798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't &lt;SPAN style="text-decoration: line-through;"&gt;knew&lt;/SPAN&gt; remembered that CROSSTABLE prefix transformed field names to text values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 11:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-numeric-values-in-a-cross-table/m-p/1130270#M634798</guid>
      <dc:creator>nicolas_martin</dc:creator>
      <dc:date>2016-06-16T11:29:53Z</dc:date>
    </item>
  </channel>
</rss>

