<?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: 2 counts in one expression - set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444607#M1165017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;You use two sets instead of one, try this:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Run_Number = {$(=Max(Run_Number))},&lt;STRONG style="text-decoration: line-through;"&gt;&amp;gt;}{&amp;lt;&lt;/STRONG&gt;[Breach graph wait band]={'52 +'}&amp;gt;}[Breach graph wait band])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 14:55:28 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2012-09-26T14:55:28Z</dc:date>
    <item>
      <title>2 counts in one expression - set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444606#M1165016</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;I am looking to use set analysis to count people waiting over 52 weeks from my latest run of data and show this in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got this far&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;EM&gt;Max({&amp;lt;Run_Number = {$(=Max(Run_Number))}&amp;gt;}[PTL Weeks Waited])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This gets the maximum run number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;=count({&amp;lt;[Breach graph wait band]={'52 +'}&amp;gt;}[Breach graph wait band])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This gets people over 52 weeks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way of putting these two expressions into one to only bring back all patients over 52 weeks for the latest run month only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;=count({&amp;lt;Run_Number = {$(=Max(Run_Number))}&amp;gt;}{&amp;lt;[Breach graph wait band]={'52 +'}&amp;gt;}[Breach graph wait band])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This counts all patients over 52 weeks but ignores the run number!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post and any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 14:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444606#M1165016</guid>
      <dc:creator />
      <dc:date>2012-09-26T14:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: 2 counts in one expression - set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444607#M1165017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;You use two sets instead of one, try this:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Run_Number = {$(=Max(Run_Number))},&lt;STRONG style="text-decoration: line-through;"&gt;&amp;gt;}{&amp;lt;&lt;/STRONG&gt;[Breach graph wait band]={'52 +'}&amp;gt;}[Breach graph wait band])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 14:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444607#M1165017</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-26T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: 2 counts in one expression - set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444608#M1165018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey whiteline Thanks for replying so quickly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this shows no data and I know there were 7 people over 52 weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Run_Number = {$(=Max(Run_Number&lt;STRONG&gt;))},&lt;STRONG style="text-decoration: line-through;"&gt;&amp;gt;}{&amp;lt;&lt;/STRONG&gt;[&lt;/STRONG&gt;Breach graph wait band]={'52 +'}&amp;gt;}[Breach graph wait band])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesnt seem to like the first comma, However if I remove the comma it continues to ignore the run number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for looking at this for me its my first day using Qlik View and its turning out to be a long one!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MIke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 15:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444608#M1165018</guid>
      <dc:creator />
      <dc:date>2012-09-26T15:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: 2 counts in one expression - set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444609#M1165019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add the quotes also:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Run_Number = {&lt;STRONG&gt;'&lt;/STRONG&gt;$(=Max(Run_Number))&lt;STRONG&gt;'&lt;/STRONG&gt;}, [Breach graph wait band]={'52 +'}&amp;gt;}[Breach graph wait band])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 15:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444609#M1165019</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-26T15:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: 2 counts in one expression - set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444610#M1165020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whiteline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked perfectly.&amp;nbsp; Thank you so much for your help today, very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 15:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444610#M1165020</guid>
      <dc:creator />
      <dc:date>2012-09-26T15:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: 2 counts in one expression - set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444611#M1165021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whiteline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked perfectly.&amp;nbsp; Thank you so much for your help today, very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 15:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-counts-in-one-expression-set-analysis/m-p/444611#M1165021</guid>
      <dc:creator />
      <dc:date>2012-09-26T15:22:04Z</dc:date>
    </item>
  </channel>
</rss>

