<?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 conditional to ignore a field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/if-conditional-to-ignore-a-field/m-p/2514111#M105437</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P class=""&gt;I have a &lt;STRONG&gt;pivot table&lt;/STRONG&gt; where the column is Product.&lt;BR /&gt;This pivot only shows products that belong to &lt;STRONG&gt;Category A&lt;/STRONG&gt;.&lt;BR /&gt;A &lt;STRONG&gt;second pivot table&lt;/STRONG&gt; displays only products from &lt;STRONG&gt;Category B&lt;/STRONG&gt;.&lt;/P&gt;&lt;P class=""&gt;When a user selects a product from the &lt;STRONG&gt;first pivot (Category A)&lt;/STRONG&gt;, a &lt;STRONG&gt;variable is set&lt;/STRONG&gt; to check if the selected product exists in the list of Category A products.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; If the selected product &lt;STRONG&gt;is in Category A&lt;/STRONG&gt;, the column Value should display the value for that product.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; If the selected product &lt;STRONG&gt;is not in Category A&lt;/STRONG&gt; (i.e., from Category B), then &lt;STRONG&gt;all products from Category A should be displayed&lt;/STRONG&gt;, &lt;STRONG&gt;ignoring the selection&lt;/STRONG&gt;, because the user might have clicked a product from the second pivot (Category B).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;I created an IF condition to handle this logic.&lt;/P&gt;&lt;P class=""&gt;However, when I select a product from &lt;STRONG&gt;Category B&lt;/STRONG&gt;, the Value column in the first pivot becomes &lt;STRONG&gt;empty or null&lt;/STRONG&gt; — nothing is shown.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What is wrong with this IF condition?&lt;BR /&gt;Why is the column not showing values when selecting a product from Category B?&lt;BR /&gt;How can I fix this logic so that the column still shows all Category A products in that case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;WildMatch(vListProducts,'&lt;EM&gt;'&amp;amp; [Products] &amp;amp;'&lt;/EM&gt;')&amp;gt;0, pick(WildMatch(vListProducts,'&lt;EM&gt;'&amp;amp; [Products] &amp;amp;'&lt;/EM&gt;'), Only({&amp;lt;[Category]={'A'}&amp;gt;} [Value]), Only({&amp;lt;[Produtcs],[Category]={'A'}&amp;gt;} [Value]) ),Only({&amp;lt;Products, [Category]={'A'}&amp;gt;} [Value]))&lt;/P&gt;&lt;P class=""&gt;&lt;!--   notionvc: 824615a7-48eb-4d22-a9ba-555a7a6268f4   --&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Apr 2025 15:29:50 GMT</pubDate>
    <dc:creator>fsilva1</dc:creator>
    <dc:date>2025-04-12T15:29:50Z</dc:date>
    <item>
      <title>if conditional to ignore a field</title>
      <link>https://community.qlik.com/t5/App-Development/if-conditional-to-ignore-a-field/m-p/2514111#M105437</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P class=""&gt;I have a &lt;STRONG&gt;pivot table&lt;/STRONG&gt; where the column is Product.&lt;BR /&gt;This pivot only shows products that belong to &lt;STRONG&gt;Category A&lt;/STRONG&gt;.&lt;BR /&gt;A &lt;STRONG&gt;second pivot table&lt;/STRONG&gt; displays only products from &lt;STRONG&gt;Category B&lt;/STRONG&gt;.&lt;/P&gt;&lt;P class=""&gt;When a user selects a product from the &lt;STRONG&gt;first pivot (Category A)&lt;/STRONG&gt;, a &lt;STRONG&gt;variable is set&lt;/STRONG&gt; to check if the selected product exists in the list of Category A products.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; If the selected product &lt;STRONG&gt;is in Category A&lt;/STRONG&gt;, the column Value should display the value for that product.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; If the selected product &lt;STRONG&gt;is not in Category A&lt;/STRONG&gt; (i.e., from Category B), then &lt;STRONG&gt;all products from Category A should be displayed&lt;/STRONG&gt;, &lt;STRONG&gt;ignoring the selection&lt;/STRONG&gt;, because the user might have clicked a product from the second pivot (Category B).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;I created an IF condition to handle this logic.&lt;/P&gt;&lt;P class=""&gt;However, when I select a product from &lt;STRONG&gt;Category B&lt;/STRONG&gt;, the Value column in the first pivot becomes &lt;STRONG&gt;empty or null&lt;/STRONG&gt; — nothing is shown.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What is wrong with this IF condition?&lt;BR /&gt;Why is the column not showing values when selecting a product from Category B?&lt;BR /&gt;How can I fix this logic so that the column still shows all Category A products in that case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;WildMatch(vListProducts,'&lt;EM&gt;'&amp;amp; [Products] &amp;amp;'&lt;/EM&gt;')&amp;gt;0, pick(WildMatch(vListProducts,'&lt;EM&gt;'&amp;amp; [Products] &amp;amp;'&lt;/EM&gt;'), Only({&amp;lt;[Category]={'A'}&amp;gt;} [Value]), Only({&amp;lt;[Produtcs],[Category]={'A'}&amp;gt;} [Value]) ),Only({&amp;lt;Products, [Category]={'A'}&amp;gt;} [Value]))&lt;/P&gt;&lt;P class=""&gt;&lt;!--   notionvc: 824615a7-48eb-4d22-a9ba-555a7a6268f4   --&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 15:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-conditional-to-ignore-a-field/m-p/2514111#M105437</guid>
      <dc:creator>fsilva1</dc:creator>
      <dc:date>2025-04-12T15:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: if conditional to ignore a field</title>
      <link>https://community.qlik.com/t5/App-Development/if-conditional-to-ignore-a-field/m-p/2514207#M105456</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can maybe do something with "Alternate states".&lt;/P&gt;&lt;P&gt;Let's assume we have these data load :&lt;/P&gt;&lt;P&gt;Source:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Product, Category, Value&lt;BR /&gt;P1, A, 100&lt;BR /&gt;P2, B, 200&lt;BR /&gt;P3, A, 150&lt;BR /&gt;P4, B, 250&lt;BR /&gt;P5, A, 400&lt;BR /&gt;P6, B, 600&lt;BR /&gt;]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Let's create 2 pivot tables with Product and value sum with a set analysis on category :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SRA_0-1744615875130.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179595iECDDE53A04A860A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SRA_0-1744615875130.png" alt="SRA_0-1744615875130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In master items, you can create 2 alternate states 'Category A' &amp;amp; 'Category B' for exemple :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SRA_1-1744615969997.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179596i613875162843BA39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SRA_1-1744615969997.png" alt="SRA_1-1744615969997.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, in he pivot table paramters "Appearance / Alternate states" you can select the corresponding alternate state. Do so for the 2 pivot tables.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SRA_2-1744616055282.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179597iFDBD3BB715E63D90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SRA_2-1744616055282.png" alt="SRA_2-1744616055282.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;One this done, you can select independently products from Category A or Category B without impacting the other pivot table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SRA_3-1744616174026.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179598iF248F04AC2CF6A50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SRA_3-1744616174026.png" alt="SRA_3-1744616174026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if this solution fits to your requirement. If yes, tick it a a solution.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SRA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 07:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-conditional-to-ignore-a-field/m-p/2514207#M105456</guid>
      <dc:creator>SRA</dc:creator>
      <dc:date>2025-04-14T07:40:22Z</dc:date>
    </item>
  </channel>
</rss>

