<?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: Show values where the first 3 characters are Numbers? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266889#M624184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another approach could be to create a flag in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Fieldname1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fieldname2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IsNum(Left(FieldName,3)), 1, 0)&lt;/SPAN&gt; as Flag&lt;/P&gt;&lt;P&gt;FROM....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Flag = {1}&amp;gt;} Fieldname2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this if you want the selections to work for the true condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Flag &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;*&lt;/SPAN&gt;= {1}&amp;gt;} Fieldname2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 11:01:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-18T11:01:28Z</dc:date>
    <item>
      <title>Show values where the first 3 characters are Numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266886#M624181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as stated in the title i am trying to get only the values where the first 3 characters are numbers.&lt;BR /&gt;What i know already is that i can use &lt;BR /&gt;IsNum(Left(FieldName,3)) to check if the statement is true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried this, but something in my function is wrong.&lt;BR /&gt;sum( {$&amp;lt;IsNum(Left(Fieldname1,3)) = 0&amp;gt;} Fieldname2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I am using this this expression for a chart if that is any valuable information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings,&lt;BR /&gt;rene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 09:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266886#M624181</guid>
      <dc:creator />
      <dc:date>2017-01-18T09:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Show values where the first 3 characters are Numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266887#M624182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum( {$&amp;lt; Fieldname1 = {"=IsNum(Left(Fieldname1,3))"} &amp;gt;} Fieldname2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266887#M624182</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-18T10:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Show values where the first 3 characters are Numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266888#M624183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your quick reply Stefan,&lt;BR /&gt;i think your answer is the way to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem now is that i want to get the Sum of "Fieldname2".&lt;/P&gt;&lt;P&gt;I have tried something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;( {$&amp;lt; Fieldname1 = {"=IsNum(Left(Fieldname1,3))"} &amp;gt;} Sum(Fieldname2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;which results in an error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;To give you a better understanding of what i need, here's and example of how my table looks like:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;IMG alt="exampleTable.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149856_exampleTable.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have different sections, and the one's that i don't want to be calculated in are the sections that start with a 3 digit number.&lt;BR /&gt;What i need is the sum of the hours, where the project doesn't start with a 3 digit number.&lt;BR /&gt;So in this case 4.00 + 3.00 = 7.00 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;rene&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266888#M624183</guid>
      <dc:creator />
      <dc:date>2017-01-18T10:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show values where the first 3 characters are Numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266889#M624184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another approach could be to create a flag in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Fieldname1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fieldname2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IsNum(Left(FieldName,3)), 1, 0)&lt;/SPAN&gt; as Flag&lt;/P&gt;&lt;P&gt;FROM....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Flag = {1}&amp;gt;} Fieldname2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this if you want the selections to work for the true condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Flag &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;*&lt;/SPAN&gt;= {1}&amp;gt;} Fieldname2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266889#M624184</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-18T11:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show values where the first 3 characters are Numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266890#M624185</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;Sum( {$&amp;lt; Fieldname1 = {"=IsNum(Left(Fieldname1,3)) &lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;= 0&lt;/SPAN&gt;"} &amp;gt;} Fieldname2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266890#M624185</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-18T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show values where the first 3 characters are Numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266891#M624186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;this seems to do the trick.&lt;/P&gt;&lt;P&gt;Is it possible to add another condition to the statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like ...and Fieldname3&amp;lt;&amp;gt;'FieldvalueXY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, how would i approach adding more conditions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I figured it out, i can just add another condition using a ','.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266891#M624186</guid>
      <dc:creator />
      <dc:date>2017-01-18T11:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Show values where the first 3 characters are Numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266892#M624187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Rene Zapf wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have tried something like&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;( {$&amp;lt; Fieldname1 = {"=IsNum(Left(Fieldname1,3))"} &amp;gt;} Sum(Fieldname2))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You need to add the set expression (the part in curly brackets to an aggregation function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum( {$&amp;lt; Fieldname1 = {"=IsNum(Left(Fieldname1,3))"} &amp;gt;} Fieldname2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Also note that only field names are allowed left of the equal sign in a set modifier (analog to making selections in &lt;EM&gt;fields&lt;/EM&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to only consider the pure text values of fieldname1 (which is not what you asked for initially), other options could be maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum( {$&amp;lt; Fieldname1 = {"=NOT IsNum(Left(Fieldname1,3))"} &amp;gt;} Fieldname2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum( {$&amp;lt; Fieldname1 = {"=IsNum(Left(Fieldname1,3))=0"} &amp;gt;} Fieldname2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum( {$&amp;lt; Fieldname1&lt;STRONG&gt; -&lt;/STRONG&gt;= {"=IsNum(Left(Fieldname1,3))"} &amp;gt;} Fieldname2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4430"&gt;Why is it called Set Analysis?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266892#M624187</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-18T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Show values where the first 3 characters are Numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266893#M624188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more might be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Sum({$&amp;lt; Fieldname1 = {"=IsText(Left(Fieldname1,3))"} &amp;gt;} Fieldname2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 12:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-where-the-first-3-characters-are-Numbers/m-p/1266893#M624188</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-18T12:14:53Z</dc:date>
    </item>
  </channel>
</rss>

