<?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 and where to write conditional statement in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44944#M773062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the data and script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2018 05:01:50 GMT</pubDate>
    <dc:creator>shiveshsingh</dc:creator>
    <dc:date>2018-05-17T05:01:50Z</dc:date>
    <item>
      <title>How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44935#M773053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two fields .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deviation after sounding&lt;/STRONG&gt; and &lt;STRONG&gt;Difference vs Log survey:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to write a code that if the&amp;nbsp; difference between them is less than 2 then a new column will display yes against the value or else no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Deviation after sounding) - (Difference vs Log survey) &amp;lt;=2 then (NEW COLUMN ) = "Correction done"&lt;/P&gt;&lt;P&gt;or else "Correction Not Done"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44935#M773053</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44936#M773054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In script:&lt;/P&gt;&lt;P&gt;if(rangesum([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Deviation after sounding],-[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Difference vs Log survey&lt;/SPAN&gt;])&amp;lt;=2,'Correction done','Correction not done') as NewField&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 16:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44936#M773054</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-05-16T16:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44937#M773055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD field1, field2, &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((Deviation after sounding - Difference vs Log survey) &amp;lt;=2, "Correction done", "Correction Not Done") AS NewFieldName&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM yoursourceTableName;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 16:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44937#M773055</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-05-16T16:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44938#M773056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not done it in the table as the two fields are coming from different tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 16:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44938#M773056</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2018-05-16T16:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44939#M773057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do we need rangesum? Can I do it in the edit expression of chart properties(as I am using a standard table chart)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 16:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44939#M773057</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2018-05-16T16:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44940#M773058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need rangesum if either of the two fields can ever be null. F1-F2 will yield null if either is null.&lt;/P&gt;&lt;P&gt;Yes, you can do it in a chart expression. Generally it is better (faster) to do as many calculation is script as is feasible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 16:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44940#M773058</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-05-16T16:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44941#M773059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I tried with the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SoundingCorrections.DEVIATION_AFTER_SOUNDING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Summary.Difference Log vs Survey]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;= 0,'Correction done','Correction not done') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DEVIATION AFTER SOUNDING HAS THE FOLLWOING VALUES. = -42,&amp;nbsp; -42,&amp;nbsp; -42,&amp;nbsp; -42 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Difference Log vs Survey HAS THE FOLLWOING VALUES = 0,&amp;nbsp; -42.68,&amp;nbsp; -16,&amp;nbsp; -7.89&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But for all the values they are showing 'Correction Not Done' Which should not be true as the second value is clearly greater than 0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 16:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44941#M773059</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2018-05-16T16:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44942#M773060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add an expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;SoundingCorrections.DEVIATION_AFTER_SOUNDING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,-&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Summary.Difference Log vs Survey]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;so you can see the values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can you share the qvw?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 16:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44942#M773060</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-05-16T16:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44943#M773061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your data model and the script you are trying?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 17:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44943#M773061</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-05-16T17:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44944#M773062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the data and script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 05:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44944#M773062</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-05-17T05:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How and where to write conditional statement in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44945#M773063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can wirte this in the expression if you want to do it in the front end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Deviation after sounding] - [Difference vs Log survey]) &amp;lt;=2,'Correction Done','Correction Not Done')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 05:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-and-where-to-write-conditional-statement-in-qlikview/m-p/44945#M773063</guid>
      <dc:creator>aslam24196</dc:creator>
      <dc:date>2018-05-17T05:50:54Z</dc:date>
    </item>
  </channel>
</rss>

