<?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: Count only if another field has a 4 digit number in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-only-if-another-field-has-a-4-digit-number/m-p/1685254#M52197</link>
    <description>&lt;P&gt;Hey Vegar,&lt;/P&gt;&lt;P&gt;thank you so much so far. That can work out. But I have another problem...&lt;/P&gt;&lt;P&gt;QMTEXT isn't just a independent column itself. Its also a link with another table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assume that a 4 digit code is always a fixed ID of a coordinate. So we know that 4000 is a machine table in Room A/Hall C and 3984 could be a cnc lathe in Room B/Hall D.&lt;/P&gt;&lt;P&gt;So there is already a range of coordinates range from 4000 to 9999 in our company, defined in Table2&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first table&amp;nbsp; I showed you was a table for people reporting failures. So instead they put a random text in QMTEXT, they should put&amp;nbsp; the 4 digit number of the coordinate of the machine instead. So we can&amp;nbsp; identify the report number (QNUM) with the coordinates on the other Table1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now with your&amp;nbsp;&lt;FONT color="#339966"&gt;count({&amp;lt;QMNUM={"=Len(QMTEXT)=4"}&amp;gt;}QMTEXT)&amp;nbsp;&lt;FONT color="#000000"&gt;since the tables are connected I also count the number of all fixed coordinates of Table2&amp;nbsp; instead of the problems links to the coordinates in Table 1.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;To make it clear: I only want to count QMNUM when there is a 4 digit number in column QMTEXT on the same Table 1, without containing the count of&amp;nbsp; the linked column COORDINATES with the 4 digits&amp;nbsp; of Table 2.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 11:46:25 GMT</pubDate>
    <dc:creator>Applicable88</dc:creator>
    <dc:date>2020-03-17T11:46:25Z</dc:date>
    <item>
      <title>Count only if another field has a 4 digit number</title>
      <link>https://community.qlik.com/t5/App-Development/Count-only-if-another-field-has-a-4-digit-number/m-p/1685214#M52191</link>
      <description>&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;absolute beginner here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two columns . One column name is QNUMBER and one of the others name is QMTEXT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;QNUMBER is always a unique number, but QMTEXT can be a text or fix range of a&amp;nbsp; 4 digit number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I only want to count the&amp;nbsp; QNUMBER's , if there is a 4 digit number in the specific QMTEXT field to the QNUMBER field.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;TABLE border="0" width="320" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80" height="20"&gt;QMNUM&lt;/TD&gt;&lt;TD width="80"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="80"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="80"&gt;QMTEXT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;321456&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;325478&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;415464&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Store No.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;321456&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;9878&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;546446&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Machine 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;454445&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1597&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the example there is only a Count of 4 since the other fields have a text or not a 4 digit number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 07:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-only-if-another-field-has-a-4-digit-number/m-p/1685214#M52191</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2020-03-17T07:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count only if another field has a 4 digit number</title>
      <link>https://community.qlik.com/t5/App-Development/Count-only-if-another-field-has-a-4-digit-number/m-p/1685222#M52192</link>
      <description>&lt;P&gt;You can try this expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;count({&amp;lt;QMNUM={"=Len(QMTEXT)=4"}&amp;gt;}QMTEXT)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But it will only work if you QMNUM is unique as you say. (In you example you had duplicate rows of QMNUM=&lt;SPAN&gt;321456)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 07:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-only-if-another-field-has-a-4-digit-number/m-p/1685222#M52192</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-17T07:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count only if another field has a 4 digit number</title>
      <link>https://community.qlik.com/t5/App-Development/Count-only-if-another-field-has-a-4-digit-number/m-p/1685254#M52197</link>
      <description>&lt;P&gt;Hey Vegar,&lt;/P&gt;&lt;P&gt;thank you so much so far. That can work out. But I have another problem...&lt;/P&gt;&lt;P&gt;QMTEXT isn't just a independent column itself. Its also a link with another table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assume that a 4 digit code is always a fixed ID of a coordinate. So we know that 4000 is a machine table in Room A/Hall C and 3984 could be a cnc lathe in Room B/Hall D.&lt;/P&gt;&lt;P&gt;So there is already a range of coordinates range from 4000 to 9999 in our company, defined in Table2&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first table&amp;nbsp; I showed you was a table for people reporting failures. So instead they put a random text in QMTEXT, they should put&amp;nbsp; the 4 digit number of the coordinate of the machine instead. So we can&amp;nbsp; identify the report number (QNUM) with the coordinates on the other Table1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now with your&amp;nbsp;&lt;FONT color="#339966"&gt;count({&amp;lt;QMNUM={"=Len(QMTEXT)=4"}&amp;gt;}QMTEXT)&amp;nbsp;&lt;FONT color="#000000"&gt;since the tables are connected I also count the number of all fixed coordinates of Table2&amp;nbsp; instead of the problems links to the coordinates in Table 1.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;To make it clear: I only want to count QMNUM when there is a 4 digit number in column QMTEXT on the same Table 1, without containing the count of&amp;nbsp; the linked column COORDINATES with the 4 digits&amp;nbsp; of Table 2.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 11:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-only-if-another-field-has-a-4-digit-number/m-p/1685254#M52197</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2020-03-17T11:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count only if another field has a 4 digit number</title>
      <link>https://community.qlik.com/t5/App-Development/Count-only-if-another-field-has-a-4-digit-number/m-p/1685336#M52203</link>
      <description>&lt;P&gt;What if you count&amp;nbsp;&lt;SPAN&gt;QMNUM instead of&amp;nbsp;QMTEXT? I think that will solve your issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;count({&amp;lt;QMNUM={"=Len(QMTEXT)=4"}&amp;gt;}QMNUM)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 12:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-only-if-another-field-has-a-4-digit-number/m-p/1685336#M52203</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-17T12:28:37Z</dc:date>
    </item>
  </channel>
</rss>

