<?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 use if then statement to create new column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599716#M1094181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;if([Time] &amp;lt;= '10:00:00',([Before 10am]=1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 08:37:31 GMT</pubDate>
    <dc:creator>jsingh71</dc:creator>
    <dc:date>2014-05-06T08:37:31Z</dc:date>
    <item>
      <title>How to use if then statement to create new column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599715#M1094180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, how do i create a column called 'before 10am' using if then statement? The underlined part has error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Before 10am&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Time]&amp;lt;='10:00:00') then &lt;SPAN style="text-decoration: underline;"&gt;([Before 10am]=1)&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 08:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599715#M1094180</guid>
      <dc:creator />
      <dc:date>2014-05-06T08:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if then statement to create new column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599716#M1094181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;if([Time] &amp;lt;= '10:00:00',([Before 10am]=1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 08:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599716#M1094181</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2014-05-06T08:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if then statement to create new column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599717#M1094182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want the value of the field to be set '1' or '0', if so then try like:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( yourcondition, 1,0) as [Before 10am]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 08:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599717#M1094182</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-06T08:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if then statement to create new column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599718#M1094183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MYTAB:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; John&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Luis&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alex&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Name = 'Alex', 'Alex The Great', Name) as newName&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident MYTAB;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table MYTAB; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 08:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599718#M1094183</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-05-06T08:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if then statement to create new column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599719#M1094184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;elaborate the question , i think you need to create a coumn in front end or backend then you directly use maketime(hh,m,ss)&lt;/P&gt;&lt;P&gt;like below :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;in script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if([Time]&amp;lt;=maketime(10,0,0) ,1,0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Before10am&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;in front end expression :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if([Time]&amp;lt;=maketime(10,0,0) ,1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 08:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599719#M1094184</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-05-06T08:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if then statement to create new column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599720#M1094185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, none of the answers worked. I want the column 'before 10am' to be 1 if the column 'time' is &amp;gt;=10:00:00, else it will be 0. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 08:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599720#M1094185</guid>
      <dc:creator />
      <dc:date>2014-05-06T08:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if then statement to create new column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599721#M1094186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;if(Timestamp(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;time&lt;/SPAN&gt;,'hh:dd:ss')&amp;gt;'10:00:00',1,0) as [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;before 10am]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;From &amp;lt;YourTable&amp;gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 09:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599721#M1094186</guid>
      <dc:creator />
      <dc:date>2014-05-06T09:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if then statement to create new column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599722#M1094187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; If( Time &amp;gt;= '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;10:00:00&lt;/SPAN&gt;' , 1,0) as [Before 10am]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 09:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599722#M1094187</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-05-06T09:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if then statement to create new column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599723#M1094188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;if( time#([Time], 'hh:mm:ss') &amp;lt; time#('10:00:00', 'hh:mm:ss'), 'Before 10am') as TimeBefore10am&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 13:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-then-statement-to-create-new-column/m-p/599723#M1094188</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-05-07T13:00:41Z</dc:date>
    </item>
  </channel>
</rss>

