<?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: Aggr(Sum) Function in Alternate States in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127402#M509672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny. I'm sure this would work, however, I am seeing the no data to display message. I am new to using alternate states.&amp;nbsp; I am wanting to see this calculation in a chart based on a Physician ID # that I have selected and have assigned to the alternate state Group1. Do I need to assign the fields within the calculation to Group1 also, even if they will not be a selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My other thought would be to define the calculation as a field in the script first and then use it for the alternate state. Your help is appreciated as always!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2018 15:54:35 GMT</pubDate>
    <dc:creator>byrnel0586</dc:creator>
    <dc:date>2018-07-26T15:54:35Z</dc:date>
    <item>
      <title>Aggr(Sum) Function in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127400#M509670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression that is currently working for my needs based on what is currently selected. But now I am needing to make a comparison of this expression against other selections using alternate states - which I have defined as "Group1" &amp;amp; "Group2". I have seen some simple expression examples, but my calculation appears more complex and I am unsure how to begin modifying it for use in alternate states.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ReportDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt; '43312', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NUMERATOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DENOMINATOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PtileBeg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NUMERATOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DENOMINATOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PtileEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MeasureID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NUMERATOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DENOMINATOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0.01))&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PtileBeg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NUMERATOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DENOMINATOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0.01))&amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PtileEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MeasureID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 18:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127400#M509670</guid>
      <dc:creator>byrnel0586</dc:creator>
      <dc:date>2018-07-25T18:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr(Sum) Function in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127401#M509671</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;=If(Num(&lt;SPAN style="color: #ff0000;"&gt;Only({[Group1]} &lt;/SPAN&gt;ReportDate&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;) &amp;lt; '43312',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;Only({[Group1]} &lt;/STRONG&gt;Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Num#(Sum(&lt;STRONG style="color: #ff0000;"&gt;{[Group1]} &lt;/STRONG&gt;NUMERATOR)/Sum(&lt;STRONG style="color: #ff0000;"&gt;{[Group1]} &lt;/STRONG&gt;DENOMINATOR)) &amp;gt;= Num#(&lt;STRONG style="color: #ff0000;"&gt;Only({[Group1]} &lt;/STRONG&gt;PtileBeg&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;) and Num#(Sum(&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;{[Group1]} &lt;/STRONG&gt;&lt;/STRONG&gt;NUMERATOR)/Sum(&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;{[Group1]} &lt;/STRONG&gt;&lt;/STRONG&gt;DENOMINATOR)) &amp;lt;= Num#(&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;Only({[Group1]} &lt;/STRONG&gt;&lt;/STRONG&gt;PtileEnd&lt;STRONG style="color: #ff0000;"&gt;)&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;STRONG&gt;, &lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;Only({[Group1]} &lt;/STRONG&gt;&lt;/STRONG&gt;Star&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;), Star, MeasureID),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;Only({[Group1]} &lt;/STRONG&gt;&lt;/STRONG&gt;Aggr(If(Num#(Round(Sum(&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;{[Group1]}&lt;/STRONG&gt;&lt;/STRONG&gt;NUMERATOR)/&lt;STRONG&gt;Sum&lt;/STRONG&gt;(&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;{[Group1]}&lt;/STRONG&gt;&lt;/STRONG&gt;DENOMINATOR), 0.01)) &amp;gt;= Num#(&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;Only({[Group1]} &lt;/STRONG&gt;PtileBeg&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;) and Num#(Round(&lt;STRONG&gt;Sum&lt;/STRONG&gt;(&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;{[Group1]}&lt;/STRONG&gt;&lt;/STRONG&gt;NUMERATOR)/&lt;STRONG&gt;Sum&lt;/STRONG&gt;(&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;{[Group1]}&lt;/STRONG&gt;&lt;/STRONG&gt;DENOMINATOR),0.01)) &amp;lt;= Num#(&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;Only({[Group1]} &lt;/STRONG&gt;&lt;/STRONG&gt;PtileEnd&lt;STRONG style="color: #ff0000;"&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;STRONG&gt;, &lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;Only({[Group1]} &lt;/STRONG&gt;&lt;/STRONG&gt;Star&lt;STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;), Star, MeasureID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 18:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127401#M509671</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-25T18:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr(Sum) Function in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127402#M509672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny. I'm sure this would work, however, I am seeing the no data to display message. I am new to using alternate states.&amp;nbsp; I am wanting to see this calculation in a chart based on a Physician ID # that I have selected and have assigned to the alternate state Group1. Do I need to assign the fields within the calculation to Group1 also, even if they will not be a selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My other thought would be to define the calculation as a field in the script first and then use it for the alternate state. Your help is appreciated as always!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 15:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127402#M509672</guid>
      <dc:creator>byrnel0586</dc:creator>
      <dc:date>2018-07-26T15:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr(Sum) Function in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127403#M509673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, aggr isn't able to be used in the script, so defining as a field there doesn't not seem possible &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 15:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127403#M509673</guid>
      <dc:creator>byrnel0586</dc:creator>
      <dc:date>2018-07-26T15:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr(Sum) Function in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127404#M509674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to show the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 16:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127404#M509674</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-26T16:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr(Sum) Function in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127405#M509675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 16:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127405#M509675</guid>
      <dc:creator>byrnel0586</dc:creator>
      <dc:date>2018-07-26T16:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr(Sum) Function in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127406#M509676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was problem with the parenthesis... try now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 16:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127406#M509676</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-26T16:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr(Sum) Function in Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127407#M509677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working. Thank you again!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 17:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-Function-in-Alternate-States/m-p/127407#M509677</guid>
      <dc:creator>byrnel0586</dc:creator>
      <dc:date>2018-07-26T17:05:55Z</dc:date>
    </item>
  </channel>
</rss>

