<?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 Syntax in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773391#M59883</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Solution 1:&amp;nbsp;=count({$&amp;lt;[Work type]= {'A','B','C'},[Worker id]= {'2'},[Flag]= {'1'}&amp;gt;}Flag)&lt;/P&gt;&lt;P&gt;Solution 2:&amp;nbsp;=count({$&amp;lt;[Work type]= {'A','B','C'},[Worker id]= {'1','6','7','8'},[Flag]= {'1'}&amp;gt;}Flag)&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ksrinivasan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 14:40:29 GMT</pubDate>
    <dc:creator>Ksrinivasan</dc:creator>
    <dc:date>2021-01-11T14:40:29Z</dc:date>
    <item>
      <title>Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772363#M59786</link>
      <description>&lt;P&gt;Hello Qlik fam!&lt;/P&gt;&lt;P&gt;I am having some technical difficulty with the syntax of set analysis. I am trying to get the count of possible values on top of already calculated possible values universe.&lt;/P&gt;&lt;P&gt;For example there are 10 workers in a factory who can get a different type of work to do every day and every worker can get any possible work type to do. Now the requirement is to get the count of workers who are purely tied with certain work types but not the other ones&lt;/P&gt;&lt;P&gt;Let the work types be&lt;/P&gt;&lt;P&gt;A,B,C,D,E,F,G,H,I,J where A,B,C,D,E,F belong to Category 1 and E,F,G,H,I,J belong to Category 2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement 1:&lt;/STRONG&gt; To get the count of workers with work type A,B,C from already calculated workers who strictly belong to combinations of A,B,C,D,E but not any of F,G,H,I,J with some flag condition &lt;STRONG&gt;(&lt;/STRONG&gt;Flag value is specific to worker irrespective of work type and work day and should be considered for both numerator and denominator&lt;STRONG&gt;)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement 2:&lt;/STRONG&gt; To get the count of workers with work type A,B,C from already calculated workers who belong to both A,B,C,D,E and F,G,H,I,J sets overall but not just within the subsets of A,B,C,D,E or F,G,H,I,J separately with some flag condition &lt;STRONG&gt;(&lt;/STRONG&gt;Flag value is specific to worker irrespective of work type and work day and should be considered for both numerator and denominator&lt;STRONG&gt;)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Attaching the sample data file with dummy data and .qvf file with what I have as of now here.&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks.&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 15:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772363#M59786</guid>
      <dc:creator>gogreen</dc:creator>
      <dc:date>2021-01-08T15:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772374#M59787</link>
      <description>&lt;P&gt;what is the expected output?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 22:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772374#M59787</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-01-06T22:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772378#M59789</link>
      <description>&lt;P&gt;I merged two individual requirements in the request here instead of posting multiple times in the community.&lt;/P&gt;&lt;P&gt;The expected outputs are the percentage (KPIs) for each requirement.&lt;/P&gt;&lt;P&gt;Requirement 1:&amp;nbsp; (&lt;SPAN&gt;count of workers with work type A,B,C from already calculated workers who strictly belong to combinations of A,B,C,D,E but not any of F,G,H,I,J with flag condition) / (count of workers who strictly belong to combinations of A,B,C,D,E but not any of F,G,H,I,J with flag condition)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Requirement 2: (count of workers with work type A,B,C from already calculated workers who belong to both A,B,C,D,E and F,G,H,I,J sets overall but not just within the subsets of A,B,C,D,E or F,G,H,I,J separately with flag condition)/ (count of workers who belong to both A,B,C,D,E and F,G,H,I,J sets overall but not just within the subsets of A,B,C,D,E or F,G,H,I,J separately with flag condition)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this is clear also may be the sample data file attached will help as I calculated the possible numbers manually for both&amp;nbsp; KPIs using the dummy records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 22:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772378#M59789</guid>
      <dc:creator>gogreen</dc:creator>
      <dc:date>2021-01-06T22:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772387#M59791</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/132610"&gt;@gogreen&lt;/a&gt;&amp;nbsp; expected output with numbers will be helpful&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 00:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772387#M59791</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-01-07T00:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772417#M59795</link>
      <description>&lt;P&gt;Solution for First Requirement :&amp;nbsp; =count({$&amp;lt;[Worker id]= {'1'}&amp;gt;}Flag) / count({$&amp;lt;[Worker id]= {'2','4','5'}&amp;gt;}Flag)&lt;/P&gt;&lt;P&gt;Solution for Second Requirement :&amp;nbsp;&amp;nbsp;=count({$&amp;lt;[Worker id]= {'1'}&amp;gt;}Flag) / count({$&amp;lt;[Worker id]= {'1','6','7','8'}&amp;gt;}Flag)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 06:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772417#M59795</guid>
      <dc:creator>Ksrinivasan</dc:creator>
      <dc:date>2021-01-07T06:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772569#M59811</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp; Attaching here the snapshot of the expected output for the sample data. Hope this is what you meant.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80712"&gt;@Ksrinivasan&lt;/a&gt;&amp;nbsp;Thanks but in the real data I have some 90000 worker ids and the work types are always 10. Hence trying to find the automated way using work types rather than worker ids.&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 18:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772569#M59811</guid>
      <dc:creator>gogreen</dc:creator>
      <dc:date>2021-01-08T18:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772756#M59821</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/132610"&gt;@gogreen&lt;/a&gt;&amp;nbsp; how &lt;STRONG&gt;3&amp;nbsp;&lt;/STRONG&gt;is calculated?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 23:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772756#M59821</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-01-07T23:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772844#M59826</link>
      <description>&lt;P&gt;If I understand your question right you need at least one AND linking between your&amp;nbsp;conditions. Maybe something like the following is helpful:&lt;/P&gt;&lt;P&gt;count({&amp;lt; Type = {'A', 'B', 'C'}&amp;gt; - &amp;lt; Type = {'&lt;SPAN&gt;F', 'G', 'H', 'I', 'J'}&amp;gt;} Worker)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 13:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772844#M59826</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-01-08T13:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772947#M59833</link>
      <description>&lt;P&gt;Considering the dummy data&lt;/P&gt;&lt;P&gt;Requirement 1 Numerator: If you look at the worker ids and their work types only 2,3,4,5 has work types with in the subset of (A,B,C,D,E) .&lt;BR /&gt;And now among 2,3,4,5 only 2,3 has final expected work types with in A,B,C. Since 3 is having flag condition '0' only worker id 2 is the correct expected output.&lt;BR /&gt;Since worker id 2 has 3 records the final numerator value is 3.&lt;/P&gt;&lt;P&gt;Requirement 2 Numerator: Among all the worker ids only 1,6,7,8,9,10 are having values from both category 1 (A,B,C,D,E) and category 2 (F,G,H,I,J)&lt;BR /&gt;but not only in one of those categories. 9,10 are ruled out because the flag is '0' and there are 4 records 1-A,6-A,7-B.8-C with the combinations within A,B,C.&lt;BR /&gt;so the numerator is 4.&lt;/P&gt;&lt;P&gt;(Small correction the right answer is 4 but not 3 for this calculation - my bad. Please ignore the above snap for this.)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gogreen_0-1610128196233.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46660i400D725E97A2CC7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gogreen_0-1610128196233.png" alt="gogreen_0-1610128196233.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 18:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772947#M59833</guid>
      <dc:creator>gogreen</dc:creator>
      <dc:date>2021-01-08T18:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772949#M59834</link>
      <description>&lt;P&gt;Thanks Marcus!&lt;/P&gt;&lt;P&gt;Doesn't this give me only possible worker ids of (only A,B,C but not &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;F', 'G', 'H', 'I', 'J')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what I am looking for is&amp;nbsp;(only A,B,C,D,E but not 'F', 'G', 'H', 'I', 'J') as denominator - say 'y' and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A,B,C with in 'y'- say 'x'. My final answer is 'x'/'y'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sai.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 17:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1772949#M59834</guid>
      <dc:creator>gogreen</dc:creator>
      <dc:date>2021-01-08T17:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773336#M59876</link>
      <description>&lt;P&gt;It wasn't meant as a full solution to your question else just as an idea to the kind of the conditions. To pick up a subset of data which restrict data from another limited subset is a rather straightforward approach but to create a product of multiple subsets could become more complicated.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 12:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773336#M59876</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-01-11T12:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773391#M59883</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Solution 1:&amp;nbsp;=count({$&amp;lt;[Work type]= {'A','B','C'},[Worker id]= {'2'},[Flag]= {'1'}&amp;gt;}Flag)&lt;/P&gt;&lt;P&gt;Solution 2:&amp;nbsp;=count({$&amp;lt;[Work type]= {'A','B','C'},[Worker id]= {'1','6','7','8'},[Flag]= {'1'}&amp;gt;}Flag)&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ksrinivasan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 14:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773391#M59883</guid>
      <dc:creator>Ksrinivasan</dc:creator>
      <dc:date>2021-01-11T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773447#M59892</link>
      <description>&lt;P&gt;Got it. Thank you!&lt;/P&gt;&lt;P&gt;Ya, I think this is the case of multiple subsets.&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 17:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773447#M59892</guid>
      <dc:creator>gogreen</dc:creator>
      <dc:date>2021-01-11T17:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773449#M59893</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;But I think the solution should be without mentioning [worker id] at all in the filters inside as there are a lot of them.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 17:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773449#M59893</guid>
      <dc:creator>gogreen</dc:creator>
      <dc:date>2021-01-11T17:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773463#M59896</link>
      <description>&lt;P&gt;Hi, in your derivation you have mentioned worker I'd.&amp;nbsp; Will you derive&amp;nbsp; without Id and post that example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ksrinivasan.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 17:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1773463#M59896</guid>
      <dc:creator>Ksrinivasan</dc:creator>
      <dc:date>2021-01-11T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1774157#M59951</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I mentioned worker ids with respect to work types. Was showing an example of what rows qualify for each calculation. Do you think sample data from the file and my initial description might help?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sai.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 18:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Syntax/m-p/1774157#M59951</guid>
      <dc:creator>gogreen</dc:creator>
      <dc:date>2021-01-13T18:19:31Z</dc:date>
    </item>
  </channel>
</rss>

