<?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: Scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1570200#M442046</link>
    <description>&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;Can you help me please&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2019 03:06:45 GMT</pubDate>
    <dc:creator>upaliwije</dc:creator>
    <dc:date>2019-04-17T03:06:45Z</dc:date>
    <item>
      <title>Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568699#M441914</link>
      <description>&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;I have following table in my QV documnet, In my data load script I have created the field 'POLICY_PERIOD'combining the two fields 'POL_PERIOD_FROM'&amp;nbsp; and 'POL_PERIOD_TO'&amp;nbsp; with following syntax.&amp;nbsp;&lt;/P&gt;&lt;P&gt;DUAL( DATE(POL_PERIOD_FROM,'MMM-YY') &amp;amp;' - '&amp;amp; DATE(POL_PERIOD_TO,'MMM-YY'),POL_PERIOD_FROM) AS POLICY_PERIOD,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.png" style="width: 558px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10093iEC77D92E6DBA4983/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However in the policy period column ending period shown as Mar-17 although actual ending period is Sep-16. I can not understand how that happened and kindly correct me if I have done anything wrong,&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 10:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568699#M441914</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-04-12T10:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568715#M441915</link>
      <description>try with simple&lt;BR /&gt;1: MonthName(POL_PERIOD_FROM)&amp;amp;'-'&amp;amp;MonthName(POL_PERIOD_TO)&lt;BR /&gt;2: Date(POL_PERIOD_FROM,'MMM-YY') &amp;amp;'-'&amp;amp; Date(POL_PERIOD_TO,'MMM-YY')&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 12 Apr 2019 11:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568715#M441915</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-04-12T11:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568720#M441916</link>
      <description>&lt;P&gt;It is strange how it worked for the other two rows but not for this one.... would you be able to share a sample where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 11:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568720#M441916</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-12T11:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568860#M441940</link>
      <description>&lt;P&gt;Thanks Sunny&lt;/P&gt;&lt;P&gt;I attach h/w sample data please. pls advise me&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568860#M441940</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-04-12T16:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568861#M441941</link>
      <description>&lt;P&gt;Thanks Sunny&lt;/P&gt;&lt;P&gt;I attach h/w sample data please. pls advise me&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568861#M441941</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-04-12T16:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568865#M441942</link>
      <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;PRE&gt;Dual(&lt;BR /&gt;     Date(POL_PERIOD_FROM, 'MMM-YY') &lt;BR /&gt;     &amp;amp; ' - ' &amp;amp;&lt;BR /&gt;     Date(POL_PERIOD_TO, 'MMM-YY')&lt;BR /&gt;, POL_PERIOD_FROM+POL_PERIOD_TO) as POLICY_PERIOD,&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1568865#M441942</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-12T16:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1569014#M441952</link>
      <description>&lt;P&gt;Thanks sunny,&lt;/P&gt;&lt;P&gt;now the&amp;nbsp; result is like shown below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.png" style="width: 545px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10145i47C7866903B4C734/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 17:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1569014#M441952</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-04-13T17:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1570200#M442046</link>
      <description>&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;Can you help me please&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 03:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1570200#M442046</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-04-17T03:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1570479#M442065</link>
      <description>&lt;P&gt;I am not really sure I understand this behavior, may be&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;can help you here.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 11:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1570479#M442065</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-17T11:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1570516#M442073</link>
      <description>&lt;P&gt;It looked like an unexplainable bug ... and doing the same within the UI worked like expected. I think I would re-create the qvd-source and ensure that the from/to-fields there are loaded equally maybe with floor(to).&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1570516#M442073</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-04-17T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1570521#M442075</link>
      <description>&lt;P&gt;I think I know what the problem is. A dual value can only have one possible text representation for a numerical value. The real value of the dual is the numeric - the text is only the display representation of the value.&lt;/P&gt;&lt;P&gt;I expect that you have a POLICY_PERIOD value somewhere else for POL_PERIOD_FROM = 31 March (Mar-16 - Mar-27).&amp;nbsp; In the model, the dual will be stored as a numeric with a single display format. So the display value for 31 March 2016 is the value in POLICY_PERIOD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to correctly reflect you would have to create a numeric value that considers both the _FROM and _TO fields. You could try this if you want to return a valid date value that reflects the FROM date:&lt;/P&gt;&lt;PRE&gt;Dual(Date(POL_PERIOD_FROM, 'MMM-YY') 
     &amp;amp; ' - ' &amp;amp;
     Date(POL_PERIOD_TO, 'MMM-YY'), &lt;BR /&gt;     POL_PERIOD_FROM + POL_PERIOD_TO/100000&lt;BR /&gt;) as POLICY_PERIOD,&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1570521#M442075</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-04-17T12:55:00Z</dc:date>
    </item>
  </channel>
</rss>

