<?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 Excluding ID's with IF and ApplyMap in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1640901#M447183</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like some help with the following:&lt;/P&gt;&lt;P&gt;I'm working with a project that needs to separate certain ID's from a field. One ID (12345) was already separated before (by someone else), and now they want to exclude one more ID (34512). The code that was used to exclude the first ID is:&lt;/P&gt;&lt;P&gt;mapUniqueID:&lt;BR /&gt;MAPPING LOAD autonumber(%Key_FactoryOrder), [Unique ID]&lt;BR /&gt;FROM *****.qvd (QVD)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;if(num(%Key_Dealer)=1 AND applymap('mapUniqueID',autonumber(%Key_FactoryOrder))='12345','12345',%Key_Dealer) AS [Retailer],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried so many different options but with no luck. Is there a simple way to fix it? E.g.&lt;/P&gt;&lt;P&gt;if(num(%Key_Dealer)=1 AND applymap('mapUniqueID',autonumber(%Key_FactoryOrder))='12345','12345',%Key_Dealer,&lt;BR /&gt;if(num(%Key_Dealer)=1 AND applymap('mapUniqueID',autonumber(%Key_FactoryOrder))='34512','34515',%Key_Dealer)) AS [Retailer],&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It should be quite easy but I've been sitting with it for a while now and I can't get it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely&lt;BR /&gt;K&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 15:05:31 GMT</pubDate>
    <dc:creator>MisterK</dc:creator>
    <dc:date>2019-10-29T15:05:31Z</dc:date>
    <item>
      <title>Excluding ID's with IF and ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1640901#M447183</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like some help with the following:&lt;/P&gt;&lt;P&gt;I'm working with a project that needs to separate certain ID's from a field. One ID (12345) was already separated before (by someone else), and now they want to exclude one more ID (34512). The code that was used to exclude the first ID is:&lt;/P&gt;&lt;P&gt;mapUniqueID:&lt;BR /&gt;MAPPING LOAD autonumber(%Key_FactoryOrder), [Unique ID]&lt;BR /&gt;FROM *****.qvd (QVD)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;if(num(%Key_Dealer)=1 AND applymap('mapUniqueID',autonumber(%Key_FactoryOrder))='12345','12345',%Key_Dealer) AS [Retailer],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried so many different options but with no luck. Is there a simple way to fix it? E.g.&lt;/P&gt;&lt;P&gt;if(num(%Key_Dealer)=1 AND applymap('mapUniqueID',autonumber(%Key_FactoryOrder))='12345','12345',%Key_Dealer,&lt;BR /&gt;if(num(%Key_Dealer)=1 AND applymap('mapUniqueID',autonumber(%Key_FactoryOrder))='34512','34515',%Key_Dealer)) AS [Retailer],&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It should be quite easy but I've been sitting with it for a while now and I can't get it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely&lt;BR /&gt;K&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 15:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1640901#M447183</guid>
      <dc:creator>MisterK</dc:creator>
      <dc:date>2019-10-29T15:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ID's with IF and ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1640926#M447185</link>
      <description>&lt;P&gt;The syntax if is: If(condition, TrueActions, FalseActions).&lt;/P&gt;&lt;P&gt;Nested different If's (the FalseActions is another If): If(condition, TrueActions, If(condition, TrueActions, FalseActions)).&lt;/P&gt;&lt;P&gt;So tou can try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(num(%Key_Dealer)=1 AND applymap('mapUniqueID',autonumber(%Key_FactoryOrder))='12345'
  ,'12345'
  , if(num(%Key_Dealer)=1 AND applymap('mapUniqueID',autonumber(%Key_FactoryOrder))='34512'
    ,'34515'
    ,%Key_Dealer
  )
) AS [Retailer],&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1640926#M447185</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-10-29T16:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ID's with IF and ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1640948#M447192</link>
      <description>&lt;P&gt;Might be easier to just do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Num(%Key_Dealer) = 1 and Match(ApplyMap('mapUniqueID', AutoNumber(%Key_FactoryOrder)), '12345', '34515'),
  ApplyMap('mapUniqueID', AutoNumber(%Key_FactoryOrder)),
  %Key_Dealer
) AS [Retailer],&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1640948#M447192</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-29T16:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ID's with IF and ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1641087#M447193</link>
      <description>&lt;P&gt;I don't know why, but when I click the 'Like' button it seems that doesn't works.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 08:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1641087#M447193</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-10-30T08:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ID's with IF and ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1641159#M447198</link>
      <description>&lt;P&gt;Not sure why would that be... seems to be working okay for me. Does this happen only for this post or any post?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 11:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1641159#M447198</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-30T11:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ID's with IF and ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1641165#M447199</link>
      <description>&lt;P&gt;Any post, I wasn't aware until now. I wonder how many likes has been lost&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 11:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1641165#M447199</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-10-30T11:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding ID's with IF and ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1641166#M447200</link>
      <description>&lt;P&gt;That is strange, may be&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14114"&gt;@Brett_Bleess&lt;/a&gt;&amp;nbsp;can help us figure this out.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 11:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-ID-s-with-IF-and-ApplyMap/m-p/1641166#M447200</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-30T11:24:47Z</dc:date>
    </item>
  </channel>
</rss>

