<?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: Set Analysis Issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885588#M72943</link>
    <description>&lt;P&gt;Hi Danimarc1,&lt;/P&gt;
&lt;P&gt;i can suggest the following solution to your problem:&lt;/P&gt;
&lt;P&gt;Add this line to your loadscript:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table:
Load
*,
If(totqtaord &amp;gt; totgia and evasa = 1, 1, 0) as flag
From ...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then use this in your expression:&lt;/P&gt;
&lt;P&gt;=sum(aggr(count(DISTINCT{&amp;lt;flag = {1}&amp;gt;} codice),sede))&lt;/P&gt;
&lt;P&gt;Let me know if it helped.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Can&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 15:41:44 GMT</pubDate>
    <dc:creator>canerkan</dc:creator>
    <dc:date>2022-01-26T15:41:44Z</dc:date>
    <item>
      <title>Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885511#M72929</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;I have an issue with Qlik Sense. I want to convert a SQL query in a expression in Qlik. This is my query:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SELECT&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COUNT(DISTINCT ID)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM livservizio&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WHERE totqtaord &amp;gt; totgia AND evasa=1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;GROUP BY sede&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I text in qlik :&amp;nbsp;&lt;STRONG&gt;sum(aggr(count(DISTINCT {&amp;lt; evasa={1}, totqtaord={"&amp;gt;$(=totgia)"}&amp;gt;} codice),sede))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;but it's not working. The problem is the condition "Where totqtaord &amp;gt; totgia".&lt;/P&gt;
&lt;P&gt;How should I write it correctly?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 12:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885511#M72929</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2022-01-26T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885515#M72930</link>
      <description>&lt;P&gt;Hi Danimarc12,&lt;/P&gt;
&lt;P&gt;maybe try something like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sum(aggr(count(DISTINCT {&amp;lt; evasa={1}, totqtaord={"&amp;gt;totgia"}&amp;gt;} codice),sede))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Let me know if it helped.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Can&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 12:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885515#M72930</guid>
      <dc:creator>canerkan</dc:creator>
      <dc:date>2022-01-26T12:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885523#M72933</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/51447"&gt;@canerkan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;thanks for your answer but it doesn't work&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 12:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885523#M72933</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2022-01-26T12:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885536#M72936</link>
      <description>&lt;P&gt;Hi Danimarc12,&lt;/P&gt;
&lt;P&gt;can you provide some sample data and what value your variable $(totgia) has, so i can look into this?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Can&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 12:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885536#M72936</guid>
      <dc:creator>canerkan</dc:creator>
      <dc:date>2022-01-26T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885544#M72938</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 435px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71008i93BE533F5B692971/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;this is my table, I want to count&amp;nbsp;&lt;STRONG&gt;codice&lt;/STRONG&gt; where &lt;STRONG&gt;totqtaord&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;totgia&lt;/STRONG&gt; and &lt;STRONG&gt;evasa&lt;/STRONG&gt;=1, grouped by &lt;STRONG&gt;sede&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 13:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885544#M72938</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2022-01-26T13:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885588#M72943</link>
      <description>&lt;P&gt;Hi Danimarc1,&lt;/P&gt;
&lt;P&gt;i can suggest the following solution to your problem:&lt;/P&gt;
&lt;P&gt;Add this line to your loadscript:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table:
Load
*,
If(totqtaord &amp;gt; totgia and evasa = 1, 1, 0) as flag
From ...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then use this in your expression:&lt;/P&gt;
&lt;P&gt;=sum(aggr(count(DISTINCT{&amp;lt;flag = {1}&amp;gt;} codice),sede))&lt;/P&gt;
&lt;P&gt;Let me know if it helped.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Can&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Issue/m-p/1885588#M72943</guid>
      <dc:creator>canerkan</dc:creator>
      <dc:date>2022-01-26T15:41:44Z</dc:date>
    </item>
  </channel>
</rss>

