<?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: Conditional variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-variable/m-p/928541#M321232</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;The issue in making it a filed in the table (your method) is I will have to use it 4 times from 3 difference sources. therefore I have to 'rename' this field 4 times rather than calling it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence I want to know is the way of making it a variable with two possible outcomes rather&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 18:08:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-07T18:08:33Z</dc:date>
    <item>
      <title>Conditional variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-variable/m-p/928539#M321230</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;is it possible to create a variable that has two possible outcome?.&lt;/P&gt;&lt;P&gt;For example, I want this statement to be held by one variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if OPEN_DATE ('DD/MM/YYYY') &amp;lt;&amp;nbsp; '01/06/2007' then A otherwise B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not what could be the best way to go about this rather than created a field on the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 13:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-variable/m-p/928539#M321230</guid>
      <dc:creator />
      <dc:date>2015-10-07T13:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-variable/m-p/928540#M321231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can assign a formula to a variable, e.g.&lt;/P&gt;&lt;P&gt;=If( Max(OPEN_DATE) &amp;lt; '01/06/2007' ,'A','B')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This assumes that OPEN_DATE has 'DD/MM/YYYY' as format and that the default format is the same).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just make sure that the variable definition starts with an equals sign. See &lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-variable/m-p/928540#M321231</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-10-07T14:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-variable/m-p/928541#M321232</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;The issue in making it a filed in the table (your method) is I will have to use it 4 times from 3 difference sources. therefore I have to 'rename' this field 4 times rather than calling it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence I want to know is the way of making it a variable with two possible outcomes rather&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 18:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-variable/m-p/928541#M321232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-07T18:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-variable/m-p/928542#M321233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add a paramter to your variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign this to your variable:&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;If( Max($1) &amp;lt; '01/06/2007' ,'A','B')&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;calling the variable like:&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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vCheckDate(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OPEN_DATE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&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;or&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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vCheckDate(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CLOSE_DATE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&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;and so forth&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;in case you want to calculate it row-based don't keep the equal sign, otherwise keep it in the variable&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 08:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-variable/m-p/928542#M321233</guid>
      <dc:creator>patroser</dc:creator>
      <dc:date>2015-10-08T08:47:11Z</dc:date>
    </item>
  </channel>
</rss>

