<?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 Advanced Set Analysis - Percent of rows with negative slope in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64761#M457993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm trying to show a percentage of patients where the slope of their line (using LINEST_M) is negative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really struggling with the syntax I need to use for the set analysis -- I believe what I have is somewhat close:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(&lt;/P&gt;&lt;P&gt;{&amp;lt;PAT_ID = {"$(=LINEST_M(ALL_VL_VALUE,ALL_VL_DATE_DIFF) &amp;lt;0}"&amp;gt;}PAT_ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the numerator -- it should count the patients (PAT_ID) where the result of the LINEST_M equation is negative&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/count(ALL_VL_VALUE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the denominator -- should be fine the way it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In essence, I'm sure my numerator syntax is off, but I have a hell of a time figuring out what I need to do in what order with the dollar sign expansion.&amp;nbsp; Any and all help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2018 19:04:50 GMT</pubDate>
    <dc:creator>koscumbs</dc:creator>
    <dc:date>2018-06-21T19:04:50Z</dc:date>
    <item>
      <title>Advanced Set Analysis - Percent of rows with negative slope</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64761#M457993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm trying to show a percentage of patients where the slope of their line (using LINEST_M) is negative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really struggling with the syntax I need to use for the set analysis -- I believe what I have is somewhat close:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(&lt;/P&gt;&lt;P&gt;{&amp;lt;PAT_ID = {"$(=LINEST_M(ALL_VL_VALUE,ALL_VL_DATE_DIFF) &amp;lt;0}"&amp;gt;}PAT_ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the numerator -- it should count the patients (PAT_ID) where the result of the LINEST_M equation is negative&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/count(ALL_VL_VALUE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the denominator -- should be fine the way it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In essence, I'm sure my numerator syntax is off, but I have a hell of a time figuring out what I need to do in what order with the dollar sign expansion.&amp;nbsp; Any and all help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 19:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64761#M457993</guid>
      <dc:creator>koscumbs</dc:creator>
      <dc:date>2018-06-21T19:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Set Analysis - Percent of rows with negative slope</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64762#M457994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be misplaced double quote? and an extra dollar sign expansion....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;PAT_ID = {"=LINEST_M(ALL_VL_VALUE,ALL_VL_DATE_DIFF) &amp;lt; 0&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"&lt;/SPAN&gt;}&amp;gt;} PAT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 19:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64762#M457994</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-21T19:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Set Analysis - Percent of rows with negative slope</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64763#M457995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately not, that throws me the same error: Error: Error in set modifier ad hoc element list: ',' or ')' expected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 19:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64763#M457995</guid>
      <dc:creator>koscumbs</dc:creator>
      <dc:date>2018-06-21T19:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Set Analysis - Percent of rows with negative slope</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64764#M457996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That edit did it -- I think...stand by.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 19:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64764#M457996</guid>
      <dc:creator>koscumbs</dc:creator>
      <dc:date>2018-06-21T19:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Set Analysis - Percent of rows with negative slope</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64765#M457997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you got it -- thanks for the SUPER fast response!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 19:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64765#M457997</guid>
      <dc:creator>koscumbs</dc:creator>
      <dc:date>2018-06-21T19:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Set Analysis - Percent of rows with negative slope</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64766#M457998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 19:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Set-Analysis-Percent-of-rows-with-negative-slope/m-p/64766#M457998</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-21T19:11:14Z</dc:date>
    </item>
  </channel>
</rss>

