<?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 convert dimension expression to load script expression ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370839#M618244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 May 2017 07:16:43 GMT</pubDate>
    <dc:creator>rahulpawarb</dc:creator>
    <dc:date>2017-05-05T07:16:43Z</dc:date>
    <item>
      <title>How to convert dimension expression to load script expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370835#M618240</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;&lt;/P&gt;&lt;P&gt;I have field name = aging_ar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This field have number from 1 to 360&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like to create a new filed name = aging_ar_class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1=1-30&lt;/P&gt;&lt;P&gt;2=31-60&lt;/P&gt;&lt;P&gt;3=61-90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In chart dimension expression below working fine :-&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;=If(aging_ar &amp;gt;= 1 and aging_ar &amp;lt;= 30, Dual('1-30', 1),&lt;/P&gt;&lt;P&gt; If(aging_ar &amp;gt;= 31 and aging_ar &amp;lt;= 60, Dual('31-60', 2), Dual('&amp;gt;61', 3)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have try convert the above expression to below for load script expression&amp;nbsp; :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(aging_ar &amp;gt;= 1 and aging_ar &amp;lt;= 30, Dual('1-30', 1),&lt;/P&gt;&lt;P&gt; If(aging_ar &amp;gt;= 31 and aging_ar &amp;lt;= 60, Dual('31-60', 2), Dual('&amp;gt;61', 3))) as aging_ar_class,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does not work , Hope some one can advise me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 06:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370835#M618240</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2017-05-05T06:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert dimension expression to load script expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370836#M618241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks OK to me. What is it doing incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conditions may fail if the ages are computed and are not integers. Modify it to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(aging_ar &amp;lt; 1, Dual('0', 0),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(aging_ar &amp;lt;= 30, Dual('1-30', 1),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(aging_ar &amp;lt;= 60, Dual('31-60', 2), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Dual('&amp;gt;61', 3)))) as aging_ar_class,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to guarrantee a value in every row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 06:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370836#M618241</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-05-05T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert dimension expression to load script expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370837#M618242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be try below:&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_14939673927763444" jivemacro_uid="_14939673927763444"&gt;
&lt;P&gt;If(aging_ar &amp;gt;= 1 and aging_ar &amp;lt;= 30,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; '1-30',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; If(aging_ar &amp;gt;= 31 and aging_ar &amp;lt;= 60,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; '31-60',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; '&amp;gt;61')) AS aging_ar_class&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 06:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370837#M618242</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-05-05T06:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert dimension expression to load script expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370838#M618243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wow you are good. Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul Yeo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 07:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370838#M618243</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2017-05-05T07:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert dimension expression to load script expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370839#M618244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 07:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-dimension-expression-to-load-script-expression/m-p/1370839#M618244</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-05-05T07:16:43Z</dc:date>
    </item>
  </channel>
</rss>

