<?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: Is it known behaviour? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336755#M29336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I often put a counter field in a table that is set to 1 for every row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there is reason why you do not wish to do this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Apr 2017 09:32:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-28T09:32:59Z</dc:date>
    <item>
      <title>Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336754#M29335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I;am trying to understand my app &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;On the picture you have few fields. All fields only in one table of data model.&lt;/P&gt;&lt;P&gt;In source data it looks like it is no duplicate. I also checked data, which i join to this table, and it should no multiply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i put into table only ID field and count (ID), my table (or barchart) shows, that i have 3 rows.&lt;/P&gt;&lt;P&gt;If i put to this chart any addisional field (from the same table of data model), the same measure shows 1....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know of course, that i may use distinc &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; But what if i would like really count rows? I dont like to put "1" to each row of each table &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;Every suggestion is welcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;Darek&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;P.S - i'am on desktop with about 100k rows, about 10 tables in data model. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336754#M29335</guid>
      <dc:creator />
      <dc:date>2021-12-22T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336755#M29336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I often put a counter field in a table that is set to 1 for every row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there is reason why you do not wish to do this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 09:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336755#M29336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T09:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336756#M29337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'am still not sure if it is my fault or maybe some bug. Thjs is why i am asking if somebody have seen it before.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;My data model is rather complex, but the field whose count is counted occurs only in one table. I understand if I used a dimension from another table, but if I throw as a dimension to the chart field, and as a measure count on the same field, and if the field appears only and only in that table, why the result is different from result when I add as next dimension another field from the same table? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Even if there are duplicates in the data, it seems that the result should be the same &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;SPAN class="trans-verified-button goog-toolbar-button"&gt;&lt;SPAN class="jfk-button-img"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(my app purpose is finding duplicates, .... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how to tell business user - don't use count(), because results may be wrong? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still hope that it is only my mistake ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336756#M29337</guid>
      <dc:creator />
      <dc:date>2017-04-28T11:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336757#M29338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without seeing your full app, load script &amp;amp; data model it is hard to reply definitively, but have a look at this Blog Post &lt;A href="https://community.qlik.com/qlik-blogpost/2739"&gt;To Join or not to Join&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&amp;nbsp; It may help you find what has gone adrift in your app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking special note of this bit I have pasted below.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;It minimizes the risk for incorrect calculations.&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; Joins potentially change the number of records in the tables, which means that a normal Sum() or Count() function cannot always be used – they would sometimes return an incorrect result. You may counter that there is always a way to write a correct formula, but my point is that it should also be easy. Expressions in server objects will be written by users that do not have special knowledge about the data model in the app.&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;Maybe then also have a look at this Blog Post, &lt;A href="https://community.qlik.com/qlik-blogpost/2756"&gt;Don't join - use Applymap instead&lt;/A&gt;.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336757#M29338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T11:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336758#M29339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand rules of data modeling &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;First thing i do when i saw those results was checking, if some joined data do not multiply rows in my table. But it shouldn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, in any data model, I can not understad why my two charts shows different results if all fields are present in one table, i selected only exactly one ID value and no other selections was made. OK, there may be one case, if additional dimension in one of 3 rows has value and in 2 other rows null, and my charts excludes nulls. I will checki it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; But if not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) If counted field is a key, which have more than one row in any table of my data model, i would expect, that both of charts will show it, (3 should be result even if i take some additional dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) if counted field is present only in one table, then still adding any other field as next dimension from the same table&amp;nbsp; should not change results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case (except case, when additional dimension has nulls on 2 from 3 rows and nuls excluded by chart) i expect, that both charts will give the same results.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange.&lt;/P&gt;&lt;P&gt;Maybe QS makes something wrong in this specific case, when dimension and measure is on the same field and no other field present on chart ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 12:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336758#M29339</guid>
      <dc:creator />
      <dc:date>2017-04-28T12:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336759#M29340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could post a sample qvf with non-confidential data ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 12:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336759#M29340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T12:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336760#M29341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first table shows the count() expression in a chart with one dimension, the second with a chart with two dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could it be that the additional dimension shows NULL in some records and that the chart hide this line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 13:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336760#M29341</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-28T13:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336761#M29342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try to reproduce this behaviour with non production data, and maybe with few less tables, than in oryginal model. Then i will send. I tryed to make the same with few rows and 2 tables, but then results are correct ... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Maybe it is something wrong with my app. During developement it was reloaded and changed many Times &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Anyway, different results in two charts are strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, after some additional investigation it looks like my ID was a key, and occured few Times in some detail table. So, chart with ID and count (ID) told true. But why, after adding dimension from master table (where row occurs only once) , result changes and dont see, that ID occurs more Times in details? I prepepared app with 2 tables and few rows, and there, after adding dimension from master table results in two charts are the same. Count in both charts shows numer of rows in detail table ..... Strange &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 14:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336761#M29342</guid>
      <dc:creator />
      <dc:date>2017-04-28T14:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336762#M29343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First table shows count of ID (as measure) and the same field (ID) as dimension.&lt;/P&gt;&lt;P&gt;This ID field is a key, which in fact occurs 1 time in master table and 3 Times in 1 detail table.&lt;/P&gt;&lt;P&gt;So, chart, which shows 3 as result telling true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 2-nd chart i added as dimension some field from master table. I think, after that looks, like QS count only rows in that table. It is not bad in fact &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is next question. Why small app i made withh two tables and few rows works different?&lt;/P&gt;&lt;P&gt;I will try to reload big app after commenting everything beyond those 2 tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 14:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336762#M29343</guid>
      <dc:creator />
      <dc:date>2017-04-28T14:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336763#M29344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lokk new picture &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I found, that results on measure value (&lt;SPAN class="short_text" lang="en"&gt;Even a summary) depends on source of used dimension&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 14:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336763#M29344</guid>
      <dc:creator />
      <dc:date>2017-04-28T14:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336764#M29345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are counting a field that is a key linking two or more tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You shouldn't count a key field (at least without a DISTINCT qualifier), the result is not deterministic as Qlik does not know which table records need to be scanned. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 15:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336764#M29345</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-28T15:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336765#M29346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;A class="" href="https://community.qlik.com/mobile/mobile-access.jspa#jive-content?content=%2Fapi%2Fcore%2Fv3%2Fcontents%2F12899"&gt;https://community.qlik.com/mobile/mobile-access.jspa#jive-content?content=%2Fapi%2Fcore%2Fv3%2Fcontents%2F12899&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 19:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336765#M29346</guid>
      <dc:creator />
      <dc:date>2017-04-28T19:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336766#M29347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's also described here by Henric:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3734"&gt;Count or Count distinct?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2017 08:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336766#M29347</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-29T08:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336767#M29348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Without distinct. I looked for duplicates and my id is also business number. I prepared technical key, hided it and now it is better &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2017 09:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336767#M29348</guid>
      <dc:creator />
      <dc:date>2017-04-29T09:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it known behaviour?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336768#M29349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better or as expected? So it was count on key field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Apr 2017 18:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-known-behaviour/m-p/1336768#M29349</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-04-30T18:43:53Z</dc:date>
    </item>
  </channel>
</rss>

