<?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 find number from string and if condition? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/find-number-from-string-and-if-condition/m-p/1239035#M862264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've dimensional field called "SKUTheme" (string), using this field need to create calculated dimension based on below condition.&lt;/P&gt;&lt;P&gt;if above filed 2nd character/letter contains number then 'Non-Theme' else 'Theme'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;note:&lt;/STRONG&gt; below expression&amp;nbsp; is working&amp;nbsp; but i'm looking some alternative expression/ simplified method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(SKUTheme='A1','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A2','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A3','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A4','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A5','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A6','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B1','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B2','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B3','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B4','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B5','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B6','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C1','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C2','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C3','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C4','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C5','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C6','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C7','Non-Theme','Theme'&lt;/P&gt;&lt;P&gt;)))))))))))))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="find_number_from string.jpg" class="jive-image image-1" src="/legacyfs/online/147696_find_number_from string.jpg" style="height: 286px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Tks, dev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>devarasu07</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>find number from string and if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/find-number-from-string-and-if-condition/m-p/1239035#M862264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've dimensional field called "SKUTheme" (string), using this field need to create calculated dimension based on below condition.&lt;/P&gt;&lt;P&gt;if above filed 2nd character/letter contains number then 'Non-Theme' else 'Theme'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;note:&lt;/STRONG&gt; below expression&amp;nbsp; is working&amp;nbsp; but i'm looking some alternative expression/ simplified method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(SKUTheme='A1','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A2','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A3','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A4','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A5','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='A6','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B1','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B2','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B3','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B4','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B5','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='B6','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C1','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C2','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C3','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C4','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C5','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C6','Non-Theme',&lt;/P&gt;&lt;P&gt;if(SKUTheme='C7','Non-Theme','Theme'&lt;/P&gt;&lt;P&gt;)))))))))))))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="find_number_from string.jpg" class="jive-image image-1" src="/legacyfs/online/147696_find_number_from string.jpg" style="height: 286px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Tks, dev&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/find-number-from-string-and-if-condition/m-p/1239035#M862264</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: find number from string and if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/find-number-from-string-and-if-condition/m-p/1239036#M862265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devarasu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(len(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SKUTheme&lt;/SPAN&gt;)&amp;gt;=3,'Theme','Non-Theme')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 08:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/find-number-from-string-and-if-condition/m-p/1239036#M862265</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-12-27T08:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: find number from string and if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/find-number-from-string-and-if-condition/m-p/1239037#M862266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think is better to create a new field in the script, then using calculated dimension, for optimization reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Cosmina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 08:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/find-number-from-string-and-if-condition/m-p/1239037#M862266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-27T08:55:48Z</dc:date>
    </item>
  </channel>
</rss>

