<?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: Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables/m-p/497441#M1128588</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;Your expression, in the QV script, should look like this (more or less):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;if("Posting Period" &amp;gt;='2005-01-01' and "Posting Period" &amp;lt;='2013-03-24','Phase_1',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;if("Posting Period" &amp;gt;'2013-08-26','Phase _4')) AS FieldName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;FieldName will contain the Phase (1, 2 3&amp;nbsp; or 4). It is a field that you will be able to use as a dimension in your QV document, without changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;Hope this helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 10:29:35 GMT</pubDate>
    <dc:creator>salto</dc:creator>
    <dc:date>2013-11-27T10:29:35Z</dc:date>
    <item>
      <title>Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/497440#M1128587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, I am very new to Qlikview and need to get a good understanding on how to create and use variables in my application.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif';"&gt;I am analysing our Debtors Book and we are trying to understand when the book had grown before certain migration phases or after.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif';"&gt;So I need to create 4 phase variables that has the following expression and then I need to plot on a graph.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;&amp;nbsp;&amp;nbsp; if(Posting Period &amp;gt;='2005-01-01' and Posting Period &amp;lt;='2013-03-24','Phase_1',&lt;BR /&gt; if(Posting Period &amp;gt;='2013-03-25' and Posting Period &amp;lt;='2013-06-23',' Phase _2',&lt;BR /&gt; if (Posting Period &amp;gt;='2013-06-24' and Posting Period &amp;lt;='2013-08-25',' Phase _3',&lt;BR /&gt; if(Posting Period &amp;gt;'2013-08-26',' Phase _4'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif';"&gt;Posting Period is a field that I bring in from my QVD. Phase is a field I will need to be a dimension…&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 10:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/497440#M1128587</guid>
      <dc:creator />
      <dc:date>2013-11-27T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/497441#M1128588</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;Your expression, in the QV script, should look like this (more or less):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;if("Posting Period" &amp;gt;='2005-01-01' and "Posting Period" &amp;lt;='2013-03-24','Phase_1',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;if("Posting Period" &amp;gt;'2013-08-26','Phase _4')) AS FieldName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;FieldName will contain the Phase (1, 2 3&amp;nbsp; or 4). It is a field that you will be able to use as a dimension in your QV document, without changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 12px;"&gt;Hope this helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 10:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/497441#M1128588</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2013-11-27T10:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/497442#M1128589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Salto...I was on the right track and you helped confirm my logic:) Much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 10:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/497442#M1128589</guid>
      <dc:creator />
      <dc:date>2013-11-27T10:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/497443#M1128590</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;You can&amp;nbsp; write the same expression at script level forming the field phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Posting Period &amp;gt;='2005-01-01' and Posting Period &amp;lt;='2013-03-24','Phase_1',&lt;/P&gt;&lt;P&gt; if(Posting Period &amp;gt;='2013-03-25' and Posting Period &amp;lt;='2013-06-23',' Phase _2',&lt;/P&gt;&lt;P&gt; if (Posting Period &amp;gt;='2013-06-24' and Posting Period &amp;lt;='2013-08-25',' Phase _3',&lt;/P&gt;&lt;P&gt; if(Posting Period &amp;gt;'2013-08-26',' Phase _4'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))) as Phase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Udit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 10:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/497443#M1128590</guid>
      <dc:creator>udit_kumar_sana</dc:creator>
      <dc:date>2013-11-27T10:38:52Z</dc:date>
    </item>
  </channel>
</rss>

