<?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: Using division in a DISTINCT expression returning an error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-division-in-a-DISTINCT-expression-returning-an-error/m-p/987141#M527627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even Oleg's revised set analysis might not work in case there are multiple combinations of InterimAnswerScore and InterimPointsPossible per INTERIMID, in a way that the search won't return an unambiguous answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that and in general, as you probably know, set analysis is evaluated once per chart, not per dimension line, so if your expression's set analysis needs to somehow care about the current dimension line, that won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't tell if this is the case or if we missed something else completely with the information provided. &lt;/P&gt;&lt;P&gt;If you have still issues with your expression, please provide more information about your data model, chart settings (dimensions) etc. Best by uploading a small sample QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2015 00:39:47 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-11-13T00:39:47Z</dc:date>
    <item>
      <title>Using division in a DISTINCT expression returning an error</title>
      <link>https://community.qlik.com/t5/QlikView/Using-division-in-a-DISTINCT-expression-returning-an-error/m-p/987138#M527624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(DISTINCT{$&amp;lt;InterimAnswerScore/InterimPointsPossible ={'&amp;gt;=.667'}&amp;gt;}INTERIMID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to return a count of all of the scores above 66%, and my dimension are the question types which is why it is important to differentiate based on the testID number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However QlikView keeps stating that this is an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 22:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-division-in-a-DISTINCT-expression-returning-an-error/m-p/987138#M527624</guid>
      <dc:creator />
      <dc:date>2015-11-12T22:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using division in a DISTINCT expression returning an error</title>
      <link>https://community.qlik.com/t5/QlikView/Using-division-in-a-DISTINCT-expression-returning-an-error/m-p/987139#M527625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding a dollar expansion :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=count(DISTINCT{$&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;$(=&lt;/STRONG&gt;&lt;/SPAN&gt;InterimAnswerScore/InterimPointsPossible&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; ={'&amp;gt;=.667'}&amp;gt;}INTERIMID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 23:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-division-in-a-DISTINCT-expression-returning-an-error/m-p/987139#M527625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T23:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using division in a DISTINCT expression returning an error</title>
      <link>https://community.qlik.com/t5/QlikView/Using-division-in-a-DISTINCT-expression-returning-an-error/m-p/987140#M527626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Briana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not related to DISTINCT, but rather to the set analysis syntax. Each Set Analysis modifier should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldName = {values}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot formulate a modifier with an expression instead of the field (even using a dollar-sign expansion, Bill!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field1/Field2 = {values} - this syntax is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can, however, formulate an Advanced Search criteria that defines the same logical selection. I'm assuming you are interested in those values of INTERIMID where the ratio of the two listed fields is greater than 2/3. So, the valid Set Analysis condition should apply the advanced search filter to the field INTERIMID:&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;=count({$&amp;lt;INTERIMID = {"=InterimAnswerScore/InterimPointsPossible &amp;gt;=.667"}&amp;gt;} DISTINCT&amp;nbsp; INTERIMID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd like to learn more about advanced Set Analysis, check out my new book &lt;EM&gt;QlikView Your Business&lt;/EM&gt;. Also, you may want to check out the agenda of the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for QlikView&lt;/A&gt;, where I teach advanced Set Analysis and Advanced Aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=64QJ6MD3O54VZHF7" rel="nofollow"&gt;Check out my new book &lt;EM&gt;QlikView Your Business&lt;/EM&gt;: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 23:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-division-in-a-DISTINCT-expression-returning-an-error/m-p/987140#M527626</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-11-12T23:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using division in a DISTINCT expression returning an error</title>
      <link>https://community.qlik.com/t5/QlikView/Using-division-in-a-DISTINCT-expression-returning-an-error/m-p/987141#M527627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even Oleg's revised set analysis might not work in case there are multiple combinations of InterimAnswerScore and InterimPointsPossible per INTERIMID, in a way that the search won't return an unambiguous answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that and in general, as you probably know, set analysis is evaluated once per chart, not per dimension line, so if your expression's set analysis needs to somehow care about the current dimension line, that won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't tell if this is the case or if we missed something else completely with the information provided. &lt;/P&gt;&lt;P&gt;If you have still issues with your expression, please provide more information about your data model, chart settings (dimensions) etc. Best by uploading a small sample QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 00:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-division-in-a-DISTINCT-expression-returning-an-error/m-p/987141#M527627</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-13T00:39:47Z</dc:date>
    </item>
  </channel>
</rss>

