<?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: why we use num here in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26790#M782400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is that the only reason behind that or anything else?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-avatarid="1224" data-externalid="" data-online="false" data-presence="null" data-userid="2286" data-username="rwunderlich" href="https://community.qlik.com/people/rwunderlich" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; text-align: left; color: #8b8b8b; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; font-style: normal; font-weight: bold; text-decoration: underline; word-spacing: 0px; vertical-align: baseline; white-space: normal; orphans: 2; widows: 2; background-color: #f2f2f2; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"&gt;Rob Wunderlich&lt;/A&gt;&lt;SPAN class="icon-status-icon icon-luminary" style="margin: 0px 0px 0px 4px; padding: 0px; border: 0px currentColor; border-image: none; top: 1px; text-align: left; color: #a9a9a9; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; font-style: normal; font-weight: 400; word-spacing: 0px; vertical-align: top; display: inline-block; white-space: normal; position: relative; -ms-zoom: 1; orphans: 2; widows: 2; background-color: #f2f2f2; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" title="Luminary"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2018 13:27:16 GMT</pubDate>
    <dc:creator>soniasweety</dc:creator>
    <dc:date>2018-03-14T13:27:16Z</dc:date>
    <item>
      <title>why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26787#M782397</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;&lt;/P&gt;&lt;P&gt;I have a doubt like&amp;nbsp; in my script I have field&lt;/P&gt;&lt;P&gt;MonthName("Month") as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Test_Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(MonthName("Month"))&amp;nbsp;&amp;nbsp; as&amp;nbsp; Test_MonthNo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in front end expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are using like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Test_MonthNo= {$(=max(Test_MonthNo))}&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so instead of month why we are using Test_monthno ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any specific reason?&amp;nbsp; can anyone explain bit on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sony&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/why-we-use-num-here/m-p/26787#M782397</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26788#M782398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Test_Month gives you Jan, Feb, March&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Test_MonthNo gives you the number of month corresponding to that month suppose Jan-1, Feb-2,.....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Ajay&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 12:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26788#M782398</guid>
      <dc:creator>ajaysingh285</dc:creator>
      <dc:date>2018-03-14T12:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26789#M782399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps,&lt;STRONG&gt; Test_Month&lt;/STRONG&gt; is a string, &lt;STRONG&gt;Test_MonthNo&lt;/STRONG&gt; is a number.&lt;/P&gt;&lt;P&gt;So, max(&lt;STRONG&gt;Test_MonthNo&lt;/STRONG&gt;) will get 12 (for example), max(&lt;STRONG&gt;Test_Month) &lt;/STRONG&gt;will return 'September'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 12:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26789#M782399</guid>
      <dc:creator>sergeyay</dc:creator>
      <dc:date>2018-03-14T12:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26790#M782400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is that the only reason behind that or anything else?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-avatarid="1224" data-externalid="" data-online="false" data-presence="null" data-userid="2286" data-username="rwunderlich" href="https://community.qlik.com/people/rwunderlich" style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; text-align: left; color: #8b8b8b; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; font-style: normal; font-weight: bold; text-decoration: underline; word-spacing: 0px; vertical-align: baseline; white-space: normal; orphans: 2; widows: 2; background-color: #f2f2f2; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"&gt;Rob Wunderlich&lt;/A&gt;&lt;SPAN class="icon-status-icon icon-luminary" style="margin: 0px 0px 0px 4px; padding: 0px; border: 0px currentColor; border-image: none; top: 1px; text-align: left; color: #a9a9a9; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; font-style: normal; font-weight: 400; word-spacing: 0px; vertical-align: top; display: inline-block; white-space: normal; position: relative; -ms-zoom: 1; orphans: 2; widows: 2; background-color: #f2f2f2; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" title="Luminary"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 13:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26790#M782400</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-03-14T13:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26791#M782401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is a small difference between these interpretations and reality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthName(Date) returns the textname of the month/year of Date (according to the format set by the MonthName system variable), associated with the first millisecond of the first day of that month. That means that there is an invisible MonthStart() call executed by MonthName. For today that would be dual('Mar 2018', 43160)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Max() both expects and returns numerical values, with an added finesse that it &lt;EM&gt;only&lt;/EM&gt; returns numerical values. The expression Text(Max(Test_Month)) will return the same value as Max(Test_Month) = 43160.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the answer for your question is really this:&lt;/P&gt;&lt;P&gt;Set analysis doesn't want to select the maximum month of 12, but the maximum MonthYear value in your data set. Set analysis however is very picky on the format of the values you calculate and assign to fields. &lt;EM&gt;The formats must be identical&lt;/EM&gt;. Therefore since you want to calculate the maximum MonthYear value, and you cannot compare this to a field that also contains a MonthName as text representation, you need a field with just the possible numerical values that may come out of the Max() call.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 13:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26791#M782401</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-03-14T13:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26792#M782402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can also skip the Test_MonthNo field and use a set expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;=Count({&amp;lt;Test_Month = {'$(=MonthName(Max(Test_MonthNo)))'}&amp;gt;} ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;but for now that's just a guess. I didn't test it &lt;SPAN style="font-size: 8pt;"&gt;(sorry Rob)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 13:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26792#M782402</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-03-14T13:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26793#M782403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should have tested Peter &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Adding to what Peter has already said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthName returns a Dual value with String of Month-Year and numeric of first day of the month.&amp;nbsp; Max() returns the numeric value.&amp;nbsp; Outside of a set expression, comparing a numeric to a dual is fine, QV will detect that you want to compare numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Test_Month = max(Test_Month)&amp;nbsp; // Returns True &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set expressions use search logic, it will only use the string portion of a dual.&amp;nbsp; So:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&amp;lt;Test_Month= {$(=max(Test_Month))}&amp;gt;}&amp;nbsp; // always false because 'Mar 2018' &amp;lt;&amp;gt; 43160&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that's why you are making an explicit numeric form of the date. So you can compare 43160 = 43160 in a set modifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26793#M782403</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-03-14T14:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26794#M782404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding to the above replies, If you really want to use MonthName field then try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Count({&amp;lt;Test_Month= {"$(=Maxstring(Test_Month))"}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26794#M782404</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-03-14T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26795#M782405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the same way will work for Dates also?&amp;nbsp; like datenum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 06:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26795#M782405</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-03-15T06:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26796#M782406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, all of the above applies to something formatted with Date.&amp;nbsp; MonthName is a date as well.&amp;nbsp; It's equivalent to &lt;/P&gt;&lt;P&gt;Date(MonthStart(mydate), 'MMM YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the MaxString() solution will only work for equals tests.&amp;nbsp; If you are testing less than or greater than you need to use the numeric form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 15:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26796#M782406</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-03-15T15:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: why we use num here</title>
      <link>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26797#M782407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice explanation rob &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 06:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-we-use-num-here/m-p/26797#M782407</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-03-16T06:43:07Z</dc:date>
    </item>
  </channel>
</rss>

