<?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 CONDITION IN A LOAD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-CONDITION-IN-A-LOAD/m-p/1228259#M873112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello&lt;BR /&gt;I load the information from a QV mitmas (Articles)&lt;BR /&gt;I have to go retrieve information on the QV MITAUN (Units), with the key item code / Buying Unit&lt;BR /&gt;The condition is the following:&lt;BR /&gt;If the key does not exist I want to have 1&lt;BR /&gt;If the key exists and the area MUDMCF QV MITAUN is 2, I want to have the value of the area MUCOFA QV MITAUN&lt;BR /&gt;If I want to have 1 / MUCOFA as value&lt;BR /&gt;Thank you&lt;BR /&gt;Here's the current request does not work:&lt;BR /&gt;&lt;BR /&gt;LOAD text (MMITNO) as CodeArticle,&lt;BR /&gt;text (MMITDS) as LibArticle,&lt;BR /&gt;text (MMITNO) &amp;amp; '&amp;amp; text (MMITDS) as CleArticle,&lt;BR /&gt;text (MMHIE1) as Hie1,&lt;BR /&gt;text (MMHIE2) as Hie2,&lt;BR /&gt;text (MMHIE3) as Hie3,&lt;BR /&gt;MMGRWE,&lt;BR /&gt;MMNEWE,&lt;BR /&gt;MMSTAT have StatutArticle,&lt;BR /&gt;text (MMSPUN) as UniteAchat&lt;BR /&gt;FROM&lt;BR /&gt;$ (VDirExtract) MITMAS.QVD&lt;BR /&gt;(Qvd);&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN (DMP_ARTICLES)&lt;BR /&gt;&lt;BR /&gt;LOAD text (MUITNO) as CodeArticle,&lt;BR /&gt;text (MUALUN) as UniteAchat,&lt;BR /&gt;If (isnull (MUDMCF), then 1 //&lt;BR /&gt;, If (// otherwise MUDMCF = 2&lt;BR /&gt;, // Then MUDMCF&lt;BR /&gt;1 / MUCOFA // otherwise&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;as COEFF&lt;BR /&gt;FROM&lt;BR /&gt;$ (VDirExtract) MITAUN.QVD&lt;BR /&gt;(Qvd)&lt;BR /&gt;WHERE MUAUTP = 2;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>IF CONDITION IN A LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/IF-CONDITION-IN-A-LOAD/m-p/1228259#M873112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello&lt;BR /&gt;I load the information from a QV mitmas (Articles)&lt;BR /&gt;I have to go retrieve information on the QV MITAUN (Units), with the key item code / Buying Unit&lt;BR /&gt;The condition is the following:&lt;BR /&gt;If the key does not exist I want to have 1&lt;BR /&gt;If the key exists and the area MUDMCF QV MITAUN is 2, I want to have the value of the area MUCOFA QV MITAUN&lt;BR /&gt;If I want to have 1 / MUCOFA as value&lt;BR /&gt;Thank you&lt;BR /&gt;Here's the current request does not work:&lt;BR /&gt;&lt;BR /&gt;LOAD text (MMITNO) as CodeArticle,&lt;BR /&gt;text (MMITDS) as LibArticle,&lt;BR /&gt;text (MMITNO) &amp;amp; '&amp;amp; text (MMITDS) as CleArticle,&lt;BR /&gt;text (MMHIE1) as Hie1,&lt;BR /&gt;text (MMHIE2) as Hie2,&lt;BR /&gt;text (MMHIE3) as Hie3,&lt;BR /&gt;MMGRWE,&lt;BR /&gt;MMNEWE,&lt;BR /&gt;MMSTAT have StatutArticle,&lt;BR /&gt;text (MMSPUN) as UniteAchat&lt;BR /&gt;FROM&lt;BR /&gt;$ (VDirExtract) MITMAS.QVD&lt;BR /&gt;(Qvd);&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN (DMP_ARTICLES)&lt;BR /&gt;&lt;BR /&gt;LOAD text (MUITNO) as CodeArticle,&lt;BR /&gt;text (MUALUN) as UniteAchat,&lt;BR /&gt;If (isnull (MUDMCF), then 1 //&lt;BR /&gt;, If (// otherwise MUDMCF = 2&lt;BR /&gt;, // Then MUDMCF&lt;BR /&gt;1 / MUCOFA // otherwise&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;as COEFF&lt;BR /&gt;FROM&lt;BR /&gt;$ (VDirExtract) MITAUN.QVD&lt;BR /&gt;(Qvd)&lt;BR /&gt;WHERE MUAUTP = 2;&lt;/SPAN&gt;&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/IF-CONDITION-IN-A-LOAD/m-p/1228259#M873112</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

