<?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: If Expression Not Working As Expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27286#M4560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Niclas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a bit embarrassing, but your solution actually does work and I will mark your response as the correct one.&amp;nbsp; I had another problem with my If expression in that I was using the wrong starting position for the mid function.&amp;nbsp; Instead of starting at 4, it should have been 5.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&amp;nbsp; My apologies for any inconvenience.&amp;nbsp; Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2018 15:07:54 GMT</pubDate>
    <dc:creator>pnn44794</dc:creator>
    <dc:date>2018-03-14T15:07:54Z</dc:date>
    <item>
      <title>If Expression Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27282#M4556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following If expression that I'm trying to use as a calculated dimension in a straight table.&amp;nbsp; What I'm trying to do is if starting in position 4 for the rest of the string if SUBLOB equals 'AAA Shared Tech', then set SUBLOB = BBB, otherwise, starting in position 4 give me the rest of the string.&amp;nbsp; Here's the If:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;mid&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SUBLOB&lt;/SPAN&gt;, 4) = 'AAA Shared Tech', &lt;SPAN style="color: #800000;"&gt;SUBLOB&lt;/SPAN&gt; = 'BBB', &lt;SPAN style="color: #0000ff;"&gt;mid&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SUBLOB&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, 4)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, I'm still getting AAA Shared Tech.&amp;nbsp; Any ideas what I may be doing wrong?&amp;nbsp; As always, thanks in advance for any and all help and responses.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27282#M4556</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-03-14T14:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27283#M4557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi, what happens when you do this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;mid&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;SUBLOB&lt;/SPAN&gt;, 4) = 'AAA Shared Tech','BBB', &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;mid&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;SUBLOB&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;, 4))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27283#M4557</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2018-03-14T14:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27284#M4558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Niclas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; I still get AAA Shared Tech in the straight table.&amp;nbsp; It doesn't change to BBB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27284#M4558</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-03-14T14:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27285#M4559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(WildMatch(SUBLOB, '???AAA Shared Tech*'), 'BBB', Mid(SUBLOB, 4))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27285#M4559</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-14T14:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27286#M4560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Niclas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a bit embarrassing, but your solution actually does work and I will mark your response as the correct one.&amp;nbsp; I had another problem with my If expression in that I was using the wrong starting position for the mid function.&amp;nbsp; Instead of starting at 4, it should have been 5.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&amp;nbsp; My apologies for any inconvenience.&amp;nbsp; Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27286#M4560</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-03-14T15:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27287#M4561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my latest response to Niclas.&amp;nbsp; Niclas's solution does indeed work.&amp;nbsp; Your solution also works.&amp;nbsp; Thank you for your response.&amp;nbsp; I appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-Not-Working-As-Expected/m-p/27287#M4561</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-03-14T15:09:57Z</dc:date>
    </item>
  </channel>
</rss>

