<?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: Difference between (num and num#) and (date &amp; date#) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35242#M789665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Num() and Date() functions take a number as first and mandatory parameter, and they return a &lt;STRONG&gt;representation&lt;/STRONG&gt; of such number as specified in the second parameter, or by default (e.g.: how many decimal places, how the negative values should be displayed, in the case of Num() and putting the month before the day or viceversa, in the case of Date()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(43132) will return 01.02.2018 (using Swiss default locale settings)&lt;/P&gt;&lt;P&gt;Num(000002) will return 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num#() and Date#() functions take either a number or a literal which needs to first be &lt;STRONG&gt;interpreted&lt;/STRONG&gt; into a number to be meaningful, so the result can be later used on a numeric function (such Num() or Date(), but also others).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the number 20180201142000 could be 20 trillion, 180 billion, etc. or a numeric representation of a date: year, month, day, hour, minute, second. If the latter, however, Date() will not return 01.02.2018, but a date much farther in the future, so in order to instruct QlikView to "understand" that number as numeric representation with the format YYYYMMDDhhmmss you can use Date#()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(2018020114200, 'YYYYMMDDhhmmss')) will return 01.02.2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check &lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterpretationFunctions/interpretation-functions.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterpretationFunctions/interpretation-functions.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterpretationFunctions/interpreta…&lt;/A&gt; for all possible parameters and further descriptions of these functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 13:24:34 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2018-02-01T13:24:34Z</dc:date>
    <item>
      <title>Difference between (num and num#) and (date &amp; date#)</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35239#M789662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please tell me difference between (num and num#) and (date &amp;amp; date#), I request you to please reply with some examples, if you can.&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/Difference-between-num-and-num-and-date-date/m-p/35239#M789662</guid>
      <dc:creator>dsdeepak284</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (num and num#) and (date &amp; date#)</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35240#M789663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let's say, you have a result number 5555.1234567 and your user wants to see only till two decimals. Here num() helps you - Num(5555.1234567, '##0.##') -&amp;gt; 5555.12&amp;nbsp;&amp;nbsp;&amp;nbsp; and the backgound number remains as it is.&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;You get a sting which is aaa12234, and your user asks to get the number part only. You can use num#() -&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Num(Num#(aaa12234, 'aaa#####')) -&amp;gt; 12234&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35240#M789663</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2018-02-01T13:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (num and num#) and (date &amp; date#)</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35241#M789664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35241#M789664</guid>
      <dc:creator>dsdeepak284</dc:creator>
      <dc:date>2018-02-01T13:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (num and num#) and (date &amp; date#)</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35242#M789665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Num() and Date() functions take a number as first and mandatory parameter, and they return a &lt;STRONG&gt;representation&lt;/STRONG&gt; of such number as specified in the second parameter, or by default (e.g.: how many decimal places, how the negative values should be displayed, in the case of Num() and putting the month before the day or viceversa, in the case of Date()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(43132) will return 01.02.2018 (using Swiss default locale settings)&lt;/P&gt;&lt;P&gt;Num(000002) will return 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num#() and Date#() functions take either a number or a literal which needs to first be &lt;STRONG&gt;interpreted&lt;/STRONG&gt; into a number to be meaningful, so the result can be later used on a numeric function (such Num() or Date(), but also others).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the number 20180201142000 could be 20 trillion, 180 billion, etc. or a numeric representation of a date: year, month, day, hour, minute, second. If the latter, however, Date() will not return 01.02.2018, but a date much farther in the future, so in order to instruct QlikView to "understand" that number as numeric representation with the format YYYYMMDDhhmmss you can use Date#()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(2018020114200, 'YYYYMMDDhhmmss')) will return 01.02.2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check &lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterpretationFunctions/interpretation-functions.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterpretationFunctions/interpretation-functions.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterpretationFunctions/interpreta…&lt;/A&gt; for all possible parameters and further descriptions of these functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35242#M789665</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-02-01T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (num and num#) and (date &amp; date#)</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35243#M789666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function without the hash (#) are format function. Basically help you assign a particular format to your field. The function with hash are interpretation function. Basically help QlikView understand if a particular field is a date (Date#()) or number (Num#()) because it is unable to understand it as a date. For example, your date is set as YYYY-MM-DD at the start of the script (environmental variable), but one of your database have date set as DD-MM-YY. Now QlikView may or may not understand this, but you can use Date#() to help QlikView understand the format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#(DateField, 'DD-MM-YY')) as DateField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35243#M789666</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-01T13:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (num and num#) and (date &amp; date#)</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35244#M789667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you keep in mind that QlikView always tries to store both numerical values and dates as &lt;EM style="text-decoration: underline;"&gt;dual&lt;/EM&gt; values with both a numerical (binary)&amp;nbsp; respresentation and a string (text) representation, then the following may make things more clear:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Num#( )&lt;/STRONG&gt;&lt;/EM&gt; is a function that converts &lt;EM&gt;a string representation&lt;/EM&gt; into a real binary number and probably stores it as a dual into either a variable or a new field. If you specify a format string, that will become the text representation. Otherwise Num#() will use the default format string (see variables DecimalSep-ThousandSep).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num#() = &lt;EM&gt;an interpretation function&lt;/EM&gt; that interpretes data that goes into QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Num( )&lt;/STRONG&gt;&lt;/EM&gt; on the other hand takes an &lt;EM&gt;existing dual value&lt;/EM&gt; (from a field or a variable, or even a string which could be considered as a dual with a derived number representation after implicit conversion) and tries to format &lt;EM&gt;the binary value part&lt;/EM&gt; into an ad-hoc text value according to the format string you specify as second parameter (or using the default DecimalSep-ThousandSep specification if you don't specify one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num() = &lt;EM&gt;a formatting function&lt;/EM&gt; that formats internal data that is sent out from QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For examples, see:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/num_hash.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/num_hash.htm"&gt;Num# ‒ QlikView&lt;/A&gt;‌ (expand Examples and Results at the bottom)&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/FormattingFunctions/Num.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/FormattingFunctions/Num.htm"&gt;Num ‒ QlikView&lt;/A&gt;&amp;nbsp; (expand Examples and Results at the bottom)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Date()&lt;/EM&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;Date#()&lt;/EM&gt;&lt;/STRONG&gt; do the same but now with date values which have a wider range of text representations that include names and punctuation characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For examples, see: &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/date_hash.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/date_hash.htm"&gt;Date# ‒ QlikView&lt;/A&gt; (expand Examples and Results at the bottom)&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/FormattingFunctions/Date.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/FormattingFunctions/Date.htm"&gt;Date ‒ QlikView&lt;/A&gt; (expand Examples and Results at the bottom)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-num-and-num-and-date-date/m-p/35244#M789667</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-01T13:48:18Z</dc:date>
    </item>
  </channel>
</rss>

