<?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 clause in load script is not giving correct values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-clause-in-load-script-is-not-giving-correct-values/m-p/1757608#M590683</link>
    <description>&lt;P&gt;I am not able to derive correct value for a field using if condition in edit script. Here is the scenario. I am loading a QVD file as below&lt;/P&gt;&lt;P&gt;date_test:&lt;/P&gt;&lt;P&gt;LOAD country,&lt;/P&gt;&lt;P&gt;employee,&lt;/P&gt;&lt;P&gt;workcountry,&lt;/P&gt;&lt;P&gt;if(country='US',Date(TransactionDate,'MM/DD/YYYY'),Date(TransactionDate,'DD/MM/YYYY') as transactiondate1&lt;/P&gt;&lt;P&gt;from test_data.qvd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried loading the qvd and saw that transactiondate1 for all the country values is in the format of MM/DD/YYYY only but not DD/MM/YYYY for the countries other than US&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2020 03:13:32 GMT</pubDate>
    <dc:creator>SailajaPulugurtha</dc:creator>
    <dc:date>2020-11-02T03:13:32Z</dc:date>
    <item>
      <title>If clause in load script is not giving correct values</title>
      <link>https://community.qlik.com/t5/QlikView/If-clause-in-load-script-is-not-giving-correct-values/m-p/1757608#M590683</link>
      <description>&lt;P&gt;I am not able to derive correct value for a field using if condition in edit script. Here is the scenario. I am loading a QVD file as below&lt;/P&gt;&lt;P&gt;date_test:&lt;/P&gt;&lt;P&gt;LOAD country,&lt;/P&gt;&lt;P&gt;employee,&lt;/P&gt;&lt;P&gt;workcountry,&lt;/P&gt;&lt;P&gt;if(country='US',Date(TransactionDate,'MM/DD/YYYY'),Date(TransactionDate,'DD/MM/YYYY') as transactiondate1&lt;/P&gt;&lt;P&gt;from test_data.qvd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried loading the qvd and saw that transactiondate1 for all the country values is in the format of MM/DD/YYYY only but not DD/MM/YYYY for the countries other than US&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 03:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-clause-in-load-script-is-not-giving-correct-values/m-p/1757608#M590683</guid>
      <dc:creator>SailajaPulugurtha</dc:creator>
      <dc:date>2020-11-02T03:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: If clause in load script is not giving correct values</title>
      <link>https://community.qlik.com/t5/QlikView/If-clause-in-load-script-is-not-giving-correct-values/m-p/1757612#M590684</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/128683"&gt;@SailajaPulugurtha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think, you repeated the question in several posts.&amp;nbsp; Please verify below link and try to close any of the threads and follow up in single thread.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Layout-Visualizations/Date-formatting-working-as-expression-but-not-as-dimension-in/td-p/1757610" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Layout-Visualizations/Date-formatting-working-as-expression-but-not-as-dimension-in/td-p/1757610&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 04:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-clause-in-load-script-is-not-giving-correct-values/m-p/1757612#M590684</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-02T04:12:27Z</dc:date>
    </item>
  </channel>
</rss>

