<?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: Expression Count*sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478642#M483787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps atn"&gt;[&lt;/SPAN&gt;expected &lt;SPAN class="hps"&gt;repair&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time]&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;= [Tempo Riparazione]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps atn"&gt;[&lt;/SPAN&gt;ProductId] = [Codice articolo]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN id="result_box" lang="en"&gt;Repair &lt;SPAN class="hps"&gt;Time = [Ore riparazione] but I don't know if you can see this field..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Regarding prepare a small sample app, I should open a new discussion asking 'How to prepare a small sample app', because I don't how to make it! ;-)))))&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;best regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Andrea&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2013 17:13:58 GMT</pubDate>
    <dc:creator>andyrebs</dc:creator>
    <dc:date>2013-06-18T17:13:58Z</dc:date>
    <item>
      <title>Expression Count*sum</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478638#M483783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I changed&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the source&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;from a file&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to an&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;ODBC Database&lt;/SPAN&gt;.&lt;BR /&gt;&lt;SPAN class="hps"&gt;Before I had&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an excel file&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with the vorious data&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of the Ticket&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;TT) &lt;SPAN class="hps"&gt;on a line&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and the fields&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;'&lt;/SPAN&gt;Repair &lt;SPAN class="hps"&gt;Time&lt;/SPAN&gt;' &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;'expected&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;repair&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time'&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in two columns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;To find&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the sum&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of the scheduled hours&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I had to use&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the simple&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expression&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps atn"&gt;sum (&lt;/SPAN&gt;&lt;SPAN class="atn"&gt;[&lt;/SPAN&gt;expected &lt;SPAN class="hps"&gt;repair&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time]&lt;/SPAN&gt;).&lt;BR /&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;But now&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the new script&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;'expected&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;repair&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time&lt;/SPAN&gt;' is in &lt;SPAN class="hps"&gt;another table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;I had to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;change the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expression&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps atn"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps atn"&gt;= [&lt;/SPAN&gt;expected &lt;SPAN class="hps"&gt;repair&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time]&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;*&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;Count (&lt;/SPAN&gt;DISTINCT &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;IdTT)).&lt;BR /&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;This new&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expression&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;works&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a chart&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; dimension &lt;SPAN class="hps"&gt;ProductId&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;but &lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the total does not work&lt;/SPAN&gt;.&lt;BR /&gt;&lt;SPAN class="hps"&gt;I tried to&lt;/SPAN&gt; modify &lt;SPAN class="hps"&gt;the expression in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps atn"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps atn"&gt;= sum (&lt;/SPAN&gt;Aggr &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;&lt;SPAN class="atn"&gt;[&lt;/SPAN&gt;expected &lt;SPAN class="hps"&gt;repair&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time]&lt;/SPAN&gt;, &lt;SPAN class="hps atn"&gt;[&lt;/SPAN&gt;ProductId])) &lt;SPAN class="hps"&gt;*&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;Count (&lt;/SPAN&gt;DISTINCT &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;IdTT))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt; &lt;SPAN class="hps"&gt;but I always have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the same problem with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the total&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;I also tried&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;enter&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the expression in a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;list box with the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field&lt;/SPAN&gt; '&lt;SPAN class="hps"&gt;TypeTTId'&lt;/SPAN&gt;, but it &lt;SPAN class="hps"&gt;shows the same&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;total&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;wrong&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Do you have a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;suggestion&lt;/SPAN&gt;?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;thank you very much&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Andrea&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 13:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478638#M483783</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2013-06-17T13:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Count*sum</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478639#M483784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to answer your question without knowing your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you describe in more detail how your tables are linked, and in what context you are using your expressions?&lt;/P&gt;&lt;P&gt;If you could post a small sample file that demonstrate your issue, this would make it even easier to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 18:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478639#M483784</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-17T18:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Count*sum</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478640#M483785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, many thanks for your answer.&lt;/P&gt;&lt;P&gt;I attach for your perusal the tables's map.&lt;/P&gt;&lt;P&gt;Maybe the solution is to concatenate the field &lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps atn"&gt;[&lt;/SPAN&gt;expected &lt;SPAN class="hps"&gt;repair&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time] to the table TabChiamate, to build the same table that I had before.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Otherwise I know that you are a Master and you will find the correct answer!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42862" class="jive-image-thumbnail jive-image" height="329" onclick="" alt="map.png" src="https://community.qlik.com/legacyfs/online/42862_map.png" width="684" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 11:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478640#M483785</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2013-06-18T11:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Count*sum</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478641#M483786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, i can't find the field names you mentioned above in your table view, you would need to translate the field names to the names used in your application for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I believe it would be much easier if you could prepare a small sample app &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 17:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478641#M483786</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-18T17:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Count*sum</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478642#M483787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps atn"&gt;[&lt;/SPAN&gt;expected &lt;SPAN class="hps"&gt;repair&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time]&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;= [Tempo Riparazione]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps atn"&gt;[&lt;/SPAN&gt;ProductId] = [Codice articolo]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN id="result_box" lang="en"&gt;Repair &lt;SPAN class="hps"&gt;Time = [Ore riparazione] but I don't know if you can see this field..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Regarding prepare a small sample app, I should open a new discussion asking 'How to prepare a small sample app', because I don't how to make it! ;-)))))&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;best regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Andrea&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 17:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478642#M483787</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2013-06-18T17:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Count*sum</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478643#M483788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I resolved this problem! I simply load the field [&lt;SPAN id="result_box" lang="en"&gt;expected &lt;SPAN class="hps"&gt;repair&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time] on the script with the function JOIN with the Main table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Many Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 17:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Count-sum/m-p/478643#M483788</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2013-07-31T17:37:19Z</dc:date>
    </item>
  </channel>
</rss>

