<?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 IF Statement to create a new column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/IF-Statement-to-create-a-new-column/m-p/2027362#M84673</link>
    <description>&lt;P&gt;Hi, guys. I need some help to create a conditional column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an app in the Qlik Sense, this app has two database whose are connected by a common column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I need to create a new column using some logical expression. For example:&lt;/P&gt;
&lt;P&gt;I have two tables: Table 1: Column "A" is a date and&amp;nbsp;Table 2: Column "B" is a date&lt;/P&gt;
&lt;P&gt;Logical expression 1: IF Column A &amp;gt; Column B (date in "A" older than date in "B"), then create a new column with "pull ahead" written.&lt;/P&gt;
&lt;P&gt;Logical expression 2: IF Column A &amp;lt; Column B, then create a new column with "postponed" written.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do this with Qlik?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 17:21:29 GMT</pubDate>
    <dc:creator>ntanan</dc:creator>
    <dc:date>2023-01-18T17:21:29Z</dc:date>
    <item>
      <title>IF Statement to create a new column</title>
      <link>https://community.qlik.com/t5/App-Development/IF-Statement-to-create-a-new-column/m-p/2027362#M84673</link>
      <description>&lt;P&gt;Hi, guys. I need some help to create a conditional column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an app in the Qlik Sense, this app has two database whose are connected by a common column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I need to create a new column using some logical expression. For example:&lt;/P&gt;
&lt;P&gt;I have two tables: Table 1: Column "A" is a date and&amp;nbsp;Table 2: Column "B" is a date&lt;/P&gt;
&lt;P&gt;Logical expression 1: IF Column A &amp;gt; Column B (date in "A" older than date in "B"), then create a new column with "pull ahead" written.&lt;/P&gt;
&lt;P&gt;Logical expression 2: IF Column A &amp;lt; Column B, then create a new column with "postponed" written.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do this with Qlik?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 17:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-Statement-to-create-a-new-column/m-p/2027362#M84673</guid>
      <dc:creator>ntanan</dc:creator>
      <dc:date>2023-01-18T17:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement to create a new column</title>
      <link>https://community.qlik.com/t5/App-Development/IF-Statement-to-create-a-new-column/m-p/2027498#M84675</link>
      <description>&lt;P&gt;You can use a formula to create a calculated dimension:&lt;BR /&gt;if([Column A] &amp;gt; [Column B], "pull ahead", null())&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 23:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-Statement-to-create-a-new-column/m-p/2027498#M84675</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2023-01-18T23:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement to create a new column</title>
      <link>https://community.qlik.com/t5/App-Development/IF-Statement-to-create-a-new-column/m-p/2027942#M84703</link>
      <description>&lt;P&gt;Hi, I'm trying to create the formula, but returns only empty values.&lt;/P&gt;
&lt;P&gt;I'm using the following sentence:&lt;/P&gt;
&lt;P&gt;IF([Ad Date] &amp;lt; [R_Ad Date], 'Pull Ahead', null())&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;IF([Ad Date] &amp;gt; [R_Ad Date], 'Posponed', null())&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;IF([Calendar Savings] &amp;lt;&amp;gt; [R_Calendar Savings], 'Saving Update', 'No Change')&lt;/P&gt;
&lt;P&gt;Does anyone know what's wrong?&amp;nbsp; How can I fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-Statement-to-create-a-new-column/m-p/2027942#M84703</guid>
      <dc:creator>ntanan</dc:creator>
      <dc:date>2023-01-19T17:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement to create a new column</title>
      <link>https://community.qlik.com/t5/App-Development/IF-Statement-to-create-a-new-column/m-p/2029547#M84807</link>
      <description>&lt;P&gt;Without being able to see your data, the only thing I can think of is maybe Qlik isn't recognizing your dates as dates so the comparison may not be working.&amp;nbsp; You could try wrapping in date() or date#() to make sure Qlik knows that they are dates.&lt;/P&gt;
&lt;P&gt;If the above doesn't work, you'll need to post some sample data in order to get further assistance.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 19:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-Statement-to-create-a-new-column/m-p/2029547#M84807</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2023-01-24T19:38:53Z</dc:date>
    </item>
  </channel>
</rss>

