<?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: only function qlik sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320612#M28501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for how many IDs match your condition, you can use this expression:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14909885985306614" jivemacro_uid="_14909885985306614" modifiedtitle="true"&gt;
&lt;P&gt;SUM(IF(AGGR(ONLY(TEMP), ID)=35, 1))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to show which IDs they are, use this other expression in a table dimensioned by ID.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14909891645439749 jive_text_macro" jivemacro_uid="_14909891645439749"&gt;
&lt;P&gt;ONLY(TEMP)=35&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diego.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Mar 2017 19:44:11 GMT</pubDate>
    <dc:creator>diegofcaivano</dc:creator>
    <dc:date>2017-03-31T19:44:11Z</dc:date>
    <item>
      <title>only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320610#M28499</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 only want to count IDS, that have ONLY had temperature observations of 35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; Obs Temp&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 36&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 37&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 36&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should only return ID 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320610#M28499</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2017-03-31T14:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320611#M28500</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;Concat(DISTINCT {&amp;lt;ID = {"=Temp = 35"}&amp;gt;} ID, ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320611#M28500</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-31T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320612#M28501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for how many IDs match your condition, you can use this expression:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14909885985306614" jivemacro_uid="_14909885985306614" modifiedtitle="true"&gt;
&lt;P&gt;SUM(IF(AGGR(ONLY(TEMP), ID)=35, 1))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to show which IDs they are, use this other expression in a table dimensioned by ID.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14909891645439749 jive_text_macro" jivemacro_uid="_14909891645439749"&gt;
&lt;P&gt;ONLY(TEMP)=35&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diego.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 19:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320612#M28501</guid>
      <dc:creator>diegofcaivano</dc:creator>
      <dc:date>2017-03-31T19:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320613#M28502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample qvf and image attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/158582_Capture.PNG" style="height: 212px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 15:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320613#M28502</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-01T15:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320614#M28503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;absolutely fab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 11:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320614#M28503</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2017-04-03T11:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320615#M28504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case you don't want this to change based on selections, you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concat(DISTINCT {&amp;lt;ID = {"=&lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt;Temp&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; = 35"}&amp;gt;} ID, ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 11:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320615#M28504</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-03T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320616#M28505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to this - so I am trying to follow any "set analysis" posts I can.&amp;nbsp; When I watch the videos on set analysis they all make sense until I try to take a problem and solve it myself.&amp;nbsp; I came up with this&lt;/P&gt;&lt;P&gt;count(distinct {&amp;lt;ID=,Temp={35}&amp;gt;}ID )&lt;/P&gt;&lt;P&gt;which doesn't work because it is not taking into account the result should be IDs that have ONLY had temp=35 and no other temp readings.&amp;nbsp; However I don't quite follow the logic of the correct answer which you posted.&lt;/P&gt;&lt;P&gt;particularly putting concat on the front and then this part&amp;nbsp; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{"=Temp = 35"}. &lt;/STRONG&gt; and why the ',' at the end?&amp;nbsp; I hope it isn't too much to ask if you can explain it -- thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concat(DISTINCT {&amp;lt;ID = {"=Temp = 35"}&amp;gt;} ID, ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 21:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320616#M28505</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2017-07-31T21:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320617#M28506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read about concat function here....&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringAggregationFunctions/concat.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringAggregationFunctions/concat.htm"&gt;Concat - script function ‒ QlikView&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is used to concat multiple values and the comma is separator. We don't see comma here because the output is just a single ID, if there were more than one ID (let's say 1 and 5), you would see something like this 1,5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 02:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320617#M28506</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-01T02:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320618#M28507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - I understand how the concat part works and why there is not a comma ( in this case only 1 ID meets the criteria).&amp;nbsp; What about this part &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;{"=Temp = 35"}&amp;nbsp; - &lt;/STRONG&gt;how does that accomplish pulling the ID's that&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt; only &lt;/STRONG&gt;have temp of 35 degrees vs IDs that have temp 35 and also other temps which is what I got by this &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;{&amp;lt;ID=,Temp={35}&amp;gt;} (which did not exclude those same IDs which had other temps also).&amp;nbsp; I am missing something.&amp;nbsp; How does that accomplish excluding the IDs which also have OBS other than temp=35.&amp;nbsp; I can see how this would work since it addresses the ONLY requirement&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: 12px; background-color: #f2f2f2;"&gt;{&amp;lt;ID={"=Only(Temp)=35"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 14:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320618#M28507</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2017-08-01T14:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320619#M28508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the deal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp = {'35'} means that show all rows where Temp = 35.... it doesn't check if two IDs have more than 1 Temp and one of them is not 35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID = {=Temp = 35} -&amp;gt; This checks if an ID has Temp = 35... If for some reason an ID have more than one Temp, Temp (which is essentially Only(Temp)) will become null... So all those IDs where we have more than 1 Temp are excluded. Next, we have all those IDs where we have only one value for Temp (they can have repeating same value so ID 1 can have two rows of Temp = 35 and this will be included). Within these IDs, pick those IDs where Temp = 35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320619#M28508</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-01T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320620#M28509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny - &lt;/P&gt;&lt;P&gt;thanks for your reply.&amp;nbsp; It is making more sense now.&amp;nbsp; I am playing around with different aspects of this, changing temps and seeing the impact. It just puzzled me that this -&amp;gt;&amp;nbsp; {=Temp=35} was functioning like Only(Temp).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 16:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320620#M28509</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2017-08-01T16:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: only function qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320621#M28510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was working like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{=Only(Temp) = 35}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 16:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/only-function-qlik-sense/m-p/1320621#M28510</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-01T16:13:51Z</dc:date>
    </item>
  </channel>
</rss>

