<?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: ApplyMap result using an if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035932#M923364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the source data look like. I think I am not able to understand the complete issue here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 13:42:49 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-14T13:42:49Z</dc:date>
    <item>
      <title>ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035930#M923362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I am using an ApplyMap and the results are correct. ... sort of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My resultant table should only show X,Y,Z and not have A and B also.&lt;/P&gt;&lt;P&gt;My group has more names than listed below but only those 3 names below are using the ApplyMap functionality. The other names should then be ignored in my resultant table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my resultant table, for my dimension, I am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Service = 'A*', NULL(), Service)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the important part, I need the &lt;STRONG&gt;wildcard&lt;/STRONG&gt; A*, rather than say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Service = 'A, AB, ABC, ABCD', NULL(), Service)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resultant table:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Service&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Number&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Z&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AB&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABCD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping table&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Service&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;John&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mary&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Rob&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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/ApplyMap-result-using-an-if-statement/m-p/1035930#M923362</guid>
      <dc:creator>bobbydave</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035931#M923363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question does not show the applymap statement you are using. Can you post your applymap statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035931#M923363</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-04-14T13:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035932#M923364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the source data look like. I think I am not able to understand the complete issue here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035932#M923364</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T13:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035933#M923365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this &lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;Service,&lt;/P&gt;&lt;P&gt;Group&lt;/P&gt;&lt;P&gt;from table &lt;/P&gt;&lt;P&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;Service='X' or &lt;SPAN style="font-size: 13.3333px;"&gt;Service='Y' or &lt;SPAN style="font-size: 13.3333px;"&gt;Service='Z' ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resultant_Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Service,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Number,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;applymap('Temp',&lt;SPAN style="font-size: 13.3333px;"&gt;Service,null()) as Group&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;from table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//&lt;STRONG&gt;since the mapping table has only the values for X ,Y and Z rest for the values will return as null()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hope this helps you&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035933#M923365</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-04-14T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035934#M923366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('MapServiceToGroup', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Group&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Service &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;I am getting the correct results but at the same time, I only want the X Y and Z to show.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Attached is a dummy app, The first table shows my result, the second shows my Wildcard if statement&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035934#M923366</guid>
      <dc:creator>bobbydave</dc:creator>
      <dc:date>2016-04-14T13:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035935#M923367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you attached the correct qvw? I am only seeing one table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121687_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035935#M923367</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T13:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035936#M923368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try my suggestion (please check my last post ) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035936#M923368</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-04-14T14:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035937#M923369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035937#M923369</guid>
      <dc:creator>bobbydave</dc:creator>
      <dc:date>2016-04-14T14:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035938#M923370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Try like this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Mapping LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Service,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Group&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;from table&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;where &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Service='X' or &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Service='Y' or &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Service='Z' ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Resultant_Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;LOAD &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Service,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Number,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;applymap('Temp',&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Service,null()) as Group&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;from table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;//&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;since the mapping table has only the values for X ,Y and Z rest for the values will return as null()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035938#M923370</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-04-14T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap result using an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035939#M923371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I needed. I didn't have the NULL() at the end of my ApplyMap() function.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-result-using-an-if-statement/m-p/1035939#M923371</guid>
      <dc:creator>bobbydave</dc:creator>
      <dc:date>2016-04-14T14:05:19Z</dc:date>
    </item>
  </channel>
</rss>

