<?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 IF (True) Do not count x in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115103#M7979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate in a bar chart the implementation of scores with this methodology:&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15415930890669254 jive_text_macro" jivemacro_uid="_15415930890669254"&gt;
&lt;P&gt;=if([Movement Type]='Termination Voluntary' or 'Termination Involuntary', 'Implemented', 'Not Implemented')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15415927477248889" jivemacro_uid="_15415927477248889"&gt;
&lt;P&gt;Count(distinct{&amp;lt;[OPR 2018]={'1B'}&amp;gt;}"Global ID")&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine, however what i would like is, that once a person has an implemented status, I do not want the graph to calculate the Not implemented status.&lt;/P&gt;&lt;P&gt;For example as shown in the below graph, the bar represents only 1 person. This person has an implemented status and not implemented due to multiple Movement types. But as the person already has been implemented, I do not want the bar chart to show to not implemented count. Is this possible?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Not Implemented 1B.PNG" class="jive-image image-1" src="/legacyfs/online/217766_Not Implemented 1B.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2018 12:21:17 GMT</pubDate>
    <dc:creator>robin_heijt</dc:creator>
    <dc:date>2018-11-07T12:21:17Z</dc:date>
    <item>
      <title>IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115103#M7979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate in a bar chart the implementation of scores with this methodology:&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15415930890669254 jive_text_macro" jivemacro_uid="_15415930890669254"&gt;
&lt;P&gt;=if([Movement Type]='Termination Voluntary' or 'Termination Involuntary', 'Implemented', 'Not Implemented')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15415927477248889" jivemacro_uid="_15415927477248889"&gt;
&lt;P&gt;Count(distinct{&amp;lt;[OPR 2018]={'1B'}&amp;gt;}"Global ID")&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine, however what i would like is, that once a person has an implemented status, I do not want the graph to calculate the Not implemented status.&lt;/P&gt;&lt;P&gt;For example as shown in the below graph, the bar represents only 1 person. This person has an implemented status and not implemented due to multiple Movement types. But as the person already has been implemented, I do not want the bar chart to show to not implemented count. Is this possible?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Not Implemented 1B.PNG" class="jive-image image-1" src="/legacyfs/online/217766_Not Implemented 1B.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 12:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115103#M7979</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-11-07T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115104#M7980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using more than one dimension in this chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 12:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115104#M7980</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-07T12:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115105#M7981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, another dimension is Function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 12:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115105#M7981</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-11-07T12:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115106#M7982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, for each Function... you want to see a single person in either Implemented or Not Implemented. If they are in Implemented, then they should not be counted in Not Implemented.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 12:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115106#M7982</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-07T12:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115107#M7983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Cycle&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Score 2017&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Score 2018&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Movement&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Implemented&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jack&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2018-2019&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Termination&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jack&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2017-2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Promotion&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jack&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2017-2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Promotion&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If this would be my data, i only want the chart to count the implemented move.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the not implemented moves are not applicable after an implementation has been performed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 12:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115107#M7983</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-11-07T12:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115108#M7984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create this using 1 dimension and 2 expressions like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Function&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Implemented&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[OPR 2018] = {'1B'}, Name = &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;p&lt;/SPAN&gt;({&amp;lt;[Movement Type] = {'Termination Voluntary', 'Termination Involuntary'}&amp;gt;})&amp;gt;} "Global ID")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for not implemented&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[OPR 2018] = {'1B'}, Name = &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;e&lt;/SPAN&gt;({&amp;lt;[Movement Type] = {'Termination Voluntary', 'Termination Involuntary'}&amp;gt;})&amp;gt;} "Global ID")&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 12:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115108#M7984</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-07T12:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115109#M7985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is partially working, the only issue now is that when I apply a filter this happens:&lt;/P&gt;&lt;P&gt;Unfiltered:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unfiltered New.PNG" class="jive-image image-1" src="/legacyfs/online/217784_Unfiltered New.PNG" style="height: 100px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Filtered:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Filtered new.PNG" class="jive-image image-2" src="/legacyfs/online/217785_Filtered new.PNG" style="height: 93px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as before when I applied a filter it would only show the function associated with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now when I filter for the function Sales, I only want to see sales in the graph, when I filter for a person that is implemented, I only want to see the implemented bar, not the not-implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you maybe also explain what the red "P" and "E" do? I am very curious what you did here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 13:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115109#M7985</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-11-07T13:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115110#M7986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look at p() and e() here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/68931"&gt;P() &amp;amp;amp; E() and where do you use them?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also here&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=ITJRisuhbWw" title="https://www.youtube.com/watch?v=ITJRisuhbWw"&gt;p() and e() function in Set Analysis #Part 30 (Qlikview Tutorial) - YouTube&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your expression to this for selection in &lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[OPR 2018] = {'1B'}, Name &lt;STRONG style=": ; color: #ff0000; font-size: 14pt;"&gt;*&lt;/STRONG&gt;= p({&amp;lt;[Movement Type] = {'Termination Voluntary', 'Termination Involuntary'}&amp;gt;})&amp;gt;} "Global ID")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[OPR 2018] = {'1B'}, Name &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;*&lt;/SPAN&gt;= e({&amp;lt;[Movement Type] = {'Termination Voluntary', 'Termination Involuntary'}&amp;gt;})&amp;gt;} "Global ID")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection in Function should work without any issues... what happens when you select a function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 13:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115110#M7986</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-07T13:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115111#M7987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing,&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 14:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115111#M7987</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-11-07T14:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115112#M7988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 1 field called cycle which represents the different cycles in which a movement has taken place. How should I adapt the code if I want the expression to look for a movement in the cycle '2018-2019'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field "Cycle" containing the likes of;&lt;/P&gt;&lt;P&gt;2016-2017, 2017-2018, 2018-2019&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 09:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115112#M7988</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-11-08T09:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: IF (True) Do not count x</title>
      <link>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115113#M7989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I completely understand this... but try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[OPR 2018] = {'1B'}, Name *= p({&amp;lt;[Movement Type] = {'Termination Voluntary', 'Termination Involuntary'}&lt;SPAN style="color: #ff0000;"&gt;, Cycle = {'2018-2019'}&lt;/SPAN&gt;&amp;gt;})&amp;gt;} "Global ID")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[OPR 2018] = {'1B'}, Name *= e({&amp;lt;[Movement Type] = {'Termination Voluntary', 'Termination Involuntary'}&lt;SPAN style="color: #ff0000;"&gt;, Cycle = {'2018-2019'}&lt;/SPAN&gt;&amp;gt;})&amp;gt;} "Global ID")&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 11:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-True-Do-not-count-x/m-p/115113#M7989</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-08T11:14:06Z</dc:date>
    </item>
  </channel>
</rss>

