<?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 there is no value '1',  then pick '2' in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-there-is-no-value-1-then-pick-2/m-p/1953846#M78666</link>
    <description>&lt;P&gt;Hi experts&lt;/P&gt;
&lt;P&gt;I have a question on which I do not find an answer online.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When value '1' does not exist, it has to take '2' in the set analysis of a calculation. If 1 does exist, it has to take '1'.&lt;/P&gt;
&lt;P&gt;I had made a new dimension in the load editor, but it is not correct.&lt;/P&gt;
&lt;P&gt;if(Min([Position Group])='2', '1',[Position Group]) as TEST&lt;/P&gt;
&lt;P&gt;In this example '1' exists as position group and in TEST it takes value '1' 2 times, while in this example it has to take just value '1' because it exists. It counts dubble when I use '1' in set analysis:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Femke_DPG_0-1657525201169.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83758i75B1EF40CD999E46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Femke_DPG_0-1657525201169.png" alt="Femke_DPG_0-1657525201169.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this example it is correct, because there is no value '1' in the column 'position group' and 2 became 1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Femke_DPG_1-1657525430489.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83759iBCE4965FE988C5A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Femke_DPG_1-1657525430489.png" alt="Femke_DPG_1-1657525430489.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you for helping me out!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Femke&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 07:45:18 GMT</pubDate>
    <dc:creator>Femke_DPG</dc:creator>
    <dc:date>2022-07-11T07:45:18Z</dc:date>
    <item>
      <title>If there is no value '1',  then pick '2'</title>
      <link>https://community.qlik.com/t5/App-Development/If-there-is-no-value-1-then-pick-2/m-p/1953846#M78666</link>
      <description>&lt;P&gt;Hi experts&lt;/P&gt;
&lt;P&gt;I have a question on which I do not find an answer online.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When value '1' does not exist, it has to take '2' in the set analysis of a calculation. If 1 does exist, it has to take '1'.&lt;/P&gt;
&lt;P&gt;I had made a new dimension in the load editor, but it is not correct.&lt;/P&gt;
&lt;P&gt;if(Min([Position Group])='2', '1',[Position Group]) as TEST&lt;/P&gt;
&lt;P&gt;In this example '1' exists as position group and in TEST it takes value '1' 2 times, while in this example it has to take just value '1' because it exists. It counts dubble when I use '1' in set analysis:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Femke_DPG_0-1657525201169.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83758i75B1EF40CD999E46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Femke_DPG_0-1657525201169.png" alt="Femke_DPG_0-1657525201169.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this example it is correct, because there is no value '1' in the column 'position group' and 2 became 1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Femke_DPG_1-1657525430489.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83759iBCE4965FE988C5A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Femke_DPG_1-1657525430489.png" alt="Femke_DPG_1-1657525430489.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you for helping me out!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Femke&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 07:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-there-is-no-value-1-then-pick-2/m-p/1953846#M78666</guid>
      <dc:creator>Femke_DPG</dc:creator>
      <dc:date>2022-07-11T07:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: If there is no value '1',  then pick '2'</title>
      <link>https://community.qlik.com/t5/App-Development/If-there-is-no-value-1-then-pick-2/m-p/1954040#M78679</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you give me the values what you are trying to do in the last colum?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="317"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="101"&gt;Brodcast Date&lt;/TD&gt;
&lt;TD width="72"&gt;Break label&lt;/TD&gt;
&lt;TD width="72"&gt;Position group&lt;/TD&gt;
&lt;TD width="72"&gt;TEST&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-01-02&lt;/TD&gt;
&lt;TD&gt;A85&lt;/TD&gt;
&lt;TD&gt;3-98&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-01-02&lt;/TD&gt;
&lt;TD&gt;A85&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-01-02&lt;/TD&gt;
&lt;TD&gt;A85&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-01-02&lt;/TD&gt;
&lt;TD&gt;A85&lt;/TD&gt;
&lt;TD&gt;99&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-01-02&lt;/TD&gt;
&lt;TD&gt;A85&lt;/TD&gt;
&lt;TD&gt;100&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 13:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-there-is-no-value-1-then-pick-2/m-p/1954040#M78679</guid>
      <dc:creator>JHuis</dc:creator>
      <dc:date>2022-07-11T13:16:10Z</dc:date>
    </item>
  </channel>
</rss>

