<?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 DataEditor Count and then Filter in counted Variable in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/DataEditor-Count-and-then-Filter-in-counted-Variable/m-p/1946224#M10957</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to do an anlysis and prepare the data in the data editor.&lt;/P&gt;
&lt;P&gt;My problem simplified:&lt;/P&gt;
&lt;P&gt;There are several tasks and I am counting the tasks for each department. Now there several Sub Tasks for this department. For example all departments need to following steps:&lt;/P&gt;
&lt;P&gt;identify requirement&lt;/P&gt;
&lt;P&gt;satisfy requirements&lt;/P&gt;
&lt;P&gt;document solutions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I want to count the total tasks of Department X. So I will do:&lt;/P&gt;
&lt;P&gt;count ( if (&amp;nbsp;@Department = 'X')) as Tasks_X&lt;/P&gt;
&lt;P&gt;The next step would be to unroll the tasks for each departmend. So i&amp;nbsp; am doing the following right now:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count if (@Department = 'X' and&amp;nbsp;@Task = 'identify requirements') as Tasks_X_identify.&lt;/P&gt;
&lt;P&gt;My real world example is a bit more complex because i have to apply much more filters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question now is. As I already filtered for Tasks_X. Can i do something like:&lt;/P&gt;
&lt;P&gt;IF Tasks_X=TRUE()&amp;nbsp; AND @TASK = 'identify requirements' as Tasks_X_identify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it is somehow understandable...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot !&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 12:07:29 GMT</pubDate>
    <dc:creator>BCFi</dc:creator>
    <dc:date>2022-06-21T12:07:29Z</dc:date>
    <item>
      <title>DataEditor Count and then Filter in counted Variable</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/DataEditor-Count-and-then-Filter-in-counted-Variable/m-p/1946224#M10957</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to do an anlysis and prepare the data in the data editor.&lt;/P&gt;
&lt;P&gt;My problem simplified:&lt;/P&gt;
&lt;P&gt;There are several tasks and I am counting the tasks for each department. Now there several Sub Tasks for this department. For example all departments need to following steps:&lt;/P&gt;
&lt;P&gt;identify requirement&lt;/P&gt;
&lt;P&gt;satisfy requirements&lt;/P&gt;
&lt;P&gt;document solutions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I want to count the total tasks of Department X. So I will do:&lt;/P&gt;
&lt;P&gt;count ( if (&amp;nbsp;@Department = 'X')) as Tasks_X&lt;/P&gt;
&lt;P&gt;The next step would be to unroll the tasks for each departmend. So i&amp;nbsp; am doing the following right now:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count if (@Department = 'X' and&amp;nbsp;@Task = 'identify requirements') as Tasks_X_identify.&lt;/P&gt;
&lt;P&gt;My real world example is a bit more complex because i have to apply much more filters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question now is. As I already filtered for Tasks_X. Can i do something like:&lt;/P&gt;
&lt;P&gt;IF Tasks_X=TRUE()&amp;nbsp; AND @TASK = 'identify requirements' as Tasks_X_identify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it is somehow understandable...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 12:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/DataEditor-Count-and-then-Filter-in-counted-Variable/m-p/1946224#M10957</guid>
      <dc:creator>BCFi</dc:creator>
      <dc:date>2022-06-21T12:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: DataEditor Count and then Filter in counted Variable</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/DataEditor-Count-and-then-Filter-in-counted-Variable/m-p/1946247#M10959</link>
      <description>&lt;P&gt;You would need to do an additional load and either keep it separate or join it back&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Department,&lt;/P&gt;
&lt;P&gt;Count(Task) as TaskCount&lt;/P&gt;
&lt;P&gt;IF( &lt;SPAN&gt;Task = 'identify requirements',&lt;/SPAN&gt;Count(Distinct Task)) as&amp;nbsp;"&lt;SPAN&gt;identify requirements count"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Resident Table&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Group by Department;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 12:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/DataEditor-Count-and-then-Filter-in-counted-Variable/m-p/1946247#M10959</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2022-06-21T12:45:53Z</dc:date>
    </item>
  </channel>
</rss>

