<?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: A set analysis with an if statment with a set analysis within?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726344#M455520</link>
    <description>&lt;P&gt;Try to share a sample app and explain the expected output in that context, will give a try.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 07:27:12 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2020-07-09T07:27:12Z</dc:date>
    <item>
      <title>A set analysis with an if statment with a set analysis within??</title>
      <link>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726324#M455517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem using set-analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a pivot table with SKOLENR as dimension i have 2 expressions that works:&lt;/P&gt;&lt;P&gt;Expression 1:&lt;/P&gt;&lt;P&gt;=count(DISTINCT{1&amp;lt;&lt;BR /&gt;GRLID = {"20200303ex"},&lt;BR /&gt;ONSKENR = {1},&lt;BR /&gt;SKOLENR = {"&amp;gt;=98 &amp;lt;=104"}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;} Rnr)&lt;/P&gt;&lt;P&gt;Expression 2:&lt;/P&gt;&lt;P&gt;=count(DISTINCT{1&amp;lt;&lt;BR /&gt;GRLID = {"20200303ex"},&lt;BR /&gt;ONSKENR = {1},&lt;BR /&gt;SKOLENR = {"&amp;gt;=98 &amp;lt;=104"},&lt;BR /&gt;KOMMNR = {"&amp;gt;=1400 &amp;lt;=1499"}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;} KOMMNR)&lt;/P&gt;&lt;P&gt;So far so good. and I for example get that it is 57 Rnr at SKOLENR 98, and 7 KOMMNR at the same SKOLENR.&lt;/P&gt;&lt;P&gt;Then the problem starts. For each SKOLENR I want to now how many KOMMNR there is where the number of Rnr is greater than 5.&lt;/P&gt;&lt;P&gt;I hope someone can help me, even if it is summer!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Torbjørn&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726324#M455517</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2024-11-16T00:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: A set analysis with an if statment with a set analysis within??</title>
      <link>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726325#M455518</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;Then the problem starts. For each SKOLENR I want to now how many KOMMNR there is where the number of Rnr is greater than 5.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;May be something like,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=count(DISTINCT{1&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;KOMMNR&lt;/STRONG&gt; = {"&lt;STRONG&gt;=Count(Distinct Rnr)&amp;gt;5&lt;/STRONG&gt;"}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;} KOMMNR)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 05:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726325#M455518</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-09T05:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: A set analysis with an if statment with a set analysis within??</title>
      <link>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726336#M455519</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;thanks for your reply. It is much appreciated. But it does not entirely solve my problem as I far as I can see. Using your suggestion in an expression 2 above, gives me:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=count(DISTINCT{1&amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GRLID = {"20200303ex"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ONSKENR = {1},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SKOLENR = {"&amp;gt;=98 &amp;lt;=104"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KOMMNR = {"&amp;gt;=1400 &amp;lt;=1499", "=Count(Distinct Rnr)&amp;gt;5"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} KOMMNR)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But i need to inlude the set analysis as in Expression 1 above in the "=Count(Distinct Rnr)&amp;gt;5)"-statement. I tried to include Expression 1 between the "" in your suggestion, but i could not get it to work. Any suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 06:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726336#M455519</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2020-07-09T06:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: A set analysis with an if statment with a set analysis within??</title>
      <link>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726344#M455520</link>
      <description>&lt;P&gt;Try to share a sample app and explain the expected output in that context, will give a try.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 07:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726344#M455520</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-09T07:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: A set analysis with an if statment with a set analysis within??</title>
      <link>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726367#M455521</link>
      <description>&lt;P&gt;Hi, attached is a sample app and a dataset. In the QW example I have written in an red textbox what i want as answer.&lt;/P&gt;&lt;P&gt;I hope this help!&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 08:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726367#M455521</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2020-07-09T08:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: A set analysis with an if statment with a set analysis within??</title>
      <link>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726384#M455522</link>
      <description>&lt;P&gt;I guess, count for 103 would be zero. Try expression like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tresesco_0-1594284501311.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37193i5CEF9EFF728F2583/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tresesco_0-1594284501311.png" alt="tresesco_0-1594284501311.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;=Count(Distinct if(Aggr(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;count(DISTINCT{1&amp;lt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;GRLID = {"20200303ex"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ONSKENR = {1},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SKOLENR = {"&amp;gt;=98 &amp;lt;=104"}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;} Rnr)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,KOMMNR,SKOLENR)&amp;gt;5, KOMMNR))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 08:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726384#M455522</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-09T08:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: A set analysis with an if statment with a set analysis within??</title>
      <link>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726387#M455523</link>
      <description>&lt;P&gt;Hi, my bad. Yes, you are correct that the count for 103 should be 0.&lt;/P&gt;&lt;P&gt;This works perfect! Thank you for your quick and correct reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Torbjørn&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 08:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-set-analysis-with-an-if-statment-with-a-set-analysis-within/m-p/1726387#M455523</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2020-07-09T08:50:57Z</dc:date>
    </item>
  </channel>
</rss>

