<?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 Filter on a created dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-on-a-created-dimension/m-p/1513046#M36546</link>
    <description>&lt;P&gt;Hi everyone! I need your help to solve my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with population data, such as neighborhood, postal code, etc.. and I made a new table that is not joined to the first one and has all this "dimensions" in one unique column---&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension_Unidad:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;DimensionUnidad&lt;BR /&gt;"1. Auzoa/Barrio",&lt;BR /&gt;"2. Unitate Txikia / Unidad Menor"&lt;BR /&gt;"3. Barrutia / Distrito"&lt;BR /&gt;"4. Atala / Sección"&lt;BR /&gt;"5. Posta-Kodea/Código Postal"&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;so that I can use it in a filter. The problem came when I made a "chart table"&amp;nbsp; where if I select for example in the filter&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"1. Auzoa/Barrio" the column of the table shows me all the neighbourhoods, and I made this with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(GetFieldSelections(DimensionUnidad)='2. Unitate Txikia / Unidad Menor', [Unidad Menor.des_cas],&lt;BR /&gt;If(GetFieldSelections(DimensionUnidad)='3. Barrutia / Distrito', [3. Barrutia / Distrito],&lt;BR /&gt;If(GetFieldSelections(DimensionUnidad)='4. Atala / Sección', [4. Atala / Sección],&lt;BR /&gt;If(GetFieldSelections(DimensionUnidad)='5. Posta-Kodea/Código Postal', [5. Posta-Kodea/Código Postal],&lt;BR /&gt;If(GetFieldSelections(DimensionUnidad)='1. Auzoa/Barrio', [Barrios.des_cas],[Barrios.des_cas]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In other column I have calculated the population so w&lt;/SPAN&gt;&lt;SPAN&gt;hen I select something in the filter it works properly! But the problem is when I dont select anything. It's suppose to give me the population filtered by "[Barrios.des_cas]" but it gives me the sum of the population in all the selections, that means population in&amp;nbsp;&amp;nbsp;[Unidad Menor.des_cas] +population in [3. Barrutia / Distrito]+population&amp;nbsp; in&amp;nbsp;[4. Atala / Sección]+...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the formula of population that I used is: count(id)&amp;nbsp; where each person has a different id. Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 16:10:09 GMT</pubDate>
    <dc:creator>Znda5</dc:creator>
    <dc:date>2018-11-27T16:10:09Z</dc:date>
    <item>
      <title>Filter on a created dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-on-a-created-dimension/m-p/1513046#M36546</link>
      <description>&lt;P&gt;Hi everyone! I need your help to solve my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with population data, such as neighborhood, postal code, etc.. and I made a new table that is not joined to the first one and has all this "dimensions" in one unique column---&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension_Unidad:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;DimensionUnidad&lt;BR /&gt;"1. Auzoa/Barrio",&lt;BR /&gt;"2. Unitate Txikia / Unidad Menor"&lt;BR /&gt;"3. Barrutia / Distrito"&lt;BR /&gt;"4. Atala / Sección"&lt;BR /&gt;"5. Posta-Kodea/Código Postal"&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;so that I can use it in a filter. The problem came when I made a "chart table"&amp;nbsp; where if I select for example in the filter&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"1. Auzoa/Barrio" the column of the table shows me all the neighbourhoods, and I made this with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(GetFieldSelections(DimensionUnidad)='2. Unitate Txikia / Unidad Menor', [Unidad Menor.des_cas],&lt;BR /&gt;If(GetFieldSelections(DimensionUnidad)='3. Barrutia / Distrito', [3. Barrutia / Distrito],&lt;BR /&gt;If(GetFieldSelections(DimensionUnidad)='4. Atala / Sección', [4. Atala / Sección],&lt;BR /&gt;If(GetFieldSelections(DimensionUnidad)='5. Posta-Kodea/Código Postal', [5. Posta-Kodea/Código Postal],&lt;BR /&gt;If(GetFieldSelections(DimensionUnidad)='1. Auzoa/Barrio', [Barrios.des_cas],[Barrios.des_cas]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In other column I have calculated the population so w&lt;/SPAN&gt;&lt;SPAN&gt;hen I select something in the filter it works properly! But the problem is when I dont select anything. It's suppose to give me the population filtered by "[Barrios.des_cas]" but it gives me the sum of the population in all the selections, that means population in&amp;nbsp;&amp;nbsp;[Unidad Menor.des_cas] +population in [3. Barrutia / Distrito]+population&amp;nbsp; in&amp;nbsp;[4. Atala / Sección]+...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the formula of population that I used is: count(id)&amp;nbsp; where each person has a different id. Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 16:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-on-a-created-dimension/m-p/1513046#M36546</guid>
      <dc:creator>Znda5</dc:creator>
      <dc:date>2018-11-27T16:10:09Z</dc:date>
    </item>
  </channel>
</rss>

