<?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: Expression as Set Analysis Modifier in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704286#M253979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but this did not seem to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 18:24:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-18T18:24:48Z</dc:date>
    <item>
      <title>Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704283#M253976</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 am trying to produce a Count of All PO Numbers that have a spend of less than $5000. Each PO can have multiple Line Amounts and hence I need to ensure that sum of all Line Amounts for a PO total to less than $5000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the below formula but failed. I will appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;(aggr(Sum([Line Amount]),[PO Number])={"&amp;lt;5000"})&amp;gt;}[PO Number])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 16:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704283#M253976</guid>
      <dc:creator />
      <dc:date>2014-06-18T16:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704284#M253977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Distinct Aggr(If(Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Line Amount]&lt;/SPAN&gt;) &amp;lt; 5000, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[PO Number]&lt;/SPAN&gt;), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[PO Number]&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 17:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704284#M253977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T17:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704285#M253978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt; [PO Number] = {"=sum([Line Amount])&amp;gt;5000"} &amp;gt;} [PO Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 17:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704285#M253978</guid>
      <dc:creator />
      <dc:date>2014-06-18T17:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704286#M253979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but this did not seem to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 18:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704286#M253979</guid>
      <dc:creator />
      <dc:date>2014-06-18T18:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704287#M253980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This did work, however it produces incorrect values when user selections are made because it is not enabled for user selected data. Could you guide how can I ensure user selections are considered?&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>Wed, 18 Jun 2014 18:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704287#M253980</guid>
      <dc:creator />
      <dc:date>2014-06-18T18:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704288#M253981</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;For what I can see, both my solution and Oswaldo's give the same results (besides the Distinct in the Count). Can you provide a sample qvw so we can better help you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 19:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704288#M253981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T19:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704289#M253982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached a sample qvw file I created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 21:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704289#M253982</guid>
      <dc:creator />
      <dc:date>2014-06-18T21:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704290#M253983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepinder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Count(Distinct Aggr(If(Sum(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;[Line Amount]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;) &amp;lt; 5000, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;[PO Number]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;[PO Number]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is returning what I think is the correct value. Oswaldo's will also work with 2 simple corrections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Count(&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Distinct&lt;/STRONG&gt;&lt;/SPAN&gt; {&amp;lt;[PO Number] = {"=Sum([Line Amount]) &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt; 5000"}&amp;gt;} [PO Number])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;Both will return the count of distinct PO Numbers that amount to less than $5000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;See the attached qvw. I have selected the PO Numbers with less than $5000. Notice the matching count of 36. If you clear the selection will see that our expressions still count 36.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 22:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704290#M253983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T22:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704291#M253984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked great! Thank you guys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick follow-up question. How can I apply the same concept if I were to try to find Count of PO's with spend between the range $5000 and $10000. &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>Thu, 19 Jun 2014 19:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704291#M253984</guid>
      <dc:creator />
      <dc:date>2014-06-19T19:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704292#M253985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;Hello, Deepinger.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;It would be like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;Count(Distinct Aggr(If(Sum(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[Line Amount]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;) &amp;gt; 5000 and &lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[Line Amount]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;) &amp;lt; 10000&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[PO Number]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[PO Number]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;Count(Distinct {&amp;lt;[PO Number] = {"=Sum([Line Amount]) &amp;gt; 5000 and Sum([Line Amount]) &amp;lt; 10000"}&amp;gt;} [PO Number])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #3d3d3d;"&gt;Best Regards.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 19:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704292#M253985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-19T19:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Expression as Set Analysis Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704293#M253986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! You guys are the bets... Appreciate all the guidance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 19:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-Set-Analysis-Modifier/m-p/704293#M253986</guid>
      <dc:creator />
      <dc:date>2014-06-19T19:56:50Z</dc:date>
    </item>
  </channel>
</rss>

