<?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: Error in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820198#M289141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have extra brackets: no brackets necessary after distinct...try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&amp;lt;&lt;/SPAN&gt;[Doctor Name]&lt;SPAN style="color: #000000;"&gt;={'PIM'}&amp;gt;}&lt;/SPAN&gt;[Script Number]&lt;SPAN style="color: #000000;"&gt;) + Count(DISTINCT {&amp;lt;&lt;/SPAN&gt;[Doctor Name]&lt;SPAN style="color: #000000;"&gt;={'PID'}&amp;gt;}&lt;/SPAN&gt;[Script Number]&lt;SPAN style="color: #000000;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2014 23:22:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-11T23:22:27Z</dc:date>
    <item>
      <title>Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820196#M289139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone assist with tracing the error in the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({&amp;lt;&lt;/SPAN&gt;[Doctor Name]&lt;SPAN style="color: #000000;"&gt;={'PIM'}&amp;gt;}&lt;/SPAN&gt;[Script Number]&lt;SPAN style="color: #000000;"&gt;)) + Count(DISTINCT({&amp;lt;&lt;/SPAN&gt;[Doctor Name]&lt;SPAN style="color: #000000;"&gt;={'PID'}&amp;gt;}&lt;/SPAN&gt;[Script Number]&lt;SPAN style="color: #000000;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="font-size: 12pt; color: #000000;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 23:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820196#M289139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T23:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820197#M289140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count&amp;nbsp; (distinct {&amp;lt;[Doctor Name]={'PIM'}&amp;gt;}[Script Number]) + Count( distinct {&amp;lt;[Doctor Name]={'PID'}&amp;gt;}[Script Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Distinct" is not a function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 23:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820197#M289140</guid>
      <dc:creator />
      <dc:date>2014-12-11T23:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820198#M289141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have extra brackets: no brackets necessary after distinct...try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&amp;lt;&lt;/SPAN&gt;[Doctor Name]&lt;SPAN style="color: #000000;"&gt;={'PIM'}&amp;gt;}&lt;/SPAN&gt;[Script Number]&lt;SPAN style="color: #000000;"&gt;) + Count(DISTINCT {&amp;lt;&lt;/SPAN&gt;[Doctor Name]&lt;SPAN style="color: #000000;"&gt;={'PID'}&amp;gt;}&lt;/SPAN&gt;[Script Number]&lt;SPAN style="color: #000000;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 23:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820198#M289141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T23:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820199#M289142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say that Set expression comes before the DISTINCT keyword like this:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Doctor Name]={'PIM'}&amp;gt;} DISTINCT [Script Number]) + Count({&amp;lt;[Doctor Name]={'PID'}&amp;gt;} DISTINCT [Script Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 23:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820199#M289142</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-11T23:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820200#M289143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, you are right, that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 23:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820200#M289143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T23:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820201#M289144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, I used Rob's recommendations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 23:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820201#M289144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T23:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820202#M289145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks.&amp;nbsp; I used Rob's recommendations&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 23:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/820202#M289145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T23:36:20Z</dc:date>
    </item>
  </channel>
</rss>

