<?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 Show column if only distinct values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Show-column-if-only-distinct-values/m-p/2025028#M84537</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a table in my application where I don't want to show a column if I have duplicate values, but where I do want to show them if these values are different. I have created a simple example below.&lt;/P&gt;
&lt;P&gt;The fields Depot country, Material Group and Price will always show&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QStaquet_0-1673534550080.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97901i2082797AC00D8AB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QStaquet_0-1673534550080.png" alt="QStaquet_0-1673534550080.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now if we select only DE, I would like to see the table including customer without material. Because for different customers, we have different prices. But all the prices of all materials within one group are the same.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QStaquet_1-1673534955538.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97902iA1843DABAD87CAB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QStaquet_1-1673534955538.png" alt="QStaquet_1-1673534955538.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If we select BE, I would like to see the material, because we have different prices for the materials within one material group.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QStaquet_2-1673535103091.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97903i76C36F82797FFE4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QStaquet_2-1673535103091.png" alt="QStaquet_2-1673535103091.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with putting this formula in the 'show column if'. But only seems to work for the customer and not for the material or both.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;avg(aggr(Count(Distinct Price),[Depot country],Material, [Material group]))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;1&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Would you have any idea if this is possible to solve?&lt;/P&gt;
&lt;P&gt;Many thanks in advance,&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 14:56:26 GMT</pubDate>
    <dc:creator>QStaquet</dc:creator>
    <dc:date>2023-01-12T14:56:26Z</dc:date>
    <item>
      <title>Show column if only distinct values</title>
      <link>https://community.qlik.com/t5/App-Development/Show-column-if-only-distinct-values/m-p/2025028#M84537</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a table in my application where I don't want to show a column if I have duplicate values, but where I do want to show them if these values are different. I have created a simple example below.&lt;/P&gt;
&lt;P&gt;The fields Depot country, Material Group and Price will always show&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QStaquet_0-1673534550080.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97901i2082797AC00D8AB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QStaquet_0-1673534550080.png" alt="QStaquet_0-1673534550080.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now if we select only DE, I would like to see the table including customer without material. Because for different customers, we have different prices. But all the prices of all materials within one group are the same.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QStaquet_1-1673534955538.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97902iA1843DABAD87CAB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QStaquet_1-1673534955538.png" alt="QStaquet_1-1673534955538.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If we select BE, I would like to see the material, because we have different prices for the materials within one material group.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QStaquet_2-1673535103091.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97903i76C36F82797FFE4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QStaquet_2-1673535103091.png" alt="QStaquet_2-1673535103091.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with putting this formula in the 'show column if'. But only seems to work for the customer and not for the material or both.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;avg(aggr(Count(Distinct Price),[Depot country],Material, [Material group]))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;1&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Would you have any idea if this is possible to solve?&lt;/P&gt;
&lt;P&gt;Many thanks in advance,&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-column-if-only-distinct-values/m-p/2025028#M84537</guid>
      <dc:creator>QStaquet</dc:creator>
      <dc:date>2023-01-12T14:56:26Z</dc:date>
    </item>
  </channel>
</rss>

