<?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 Re: {1} not ignoring filter selection, why??? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412563#M94757</link>
    <description>&lt;P&gt;Hi Scotchy, thanks for the reply!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately it didn't work. If I select a store it still changes the value to 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ae818cdc09eddb5b8a288328f706ce8a.gif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158635iC8E0877430CE5058/image-size/large?v=v2&amp;amp;px=999" role="button" title="ae818cdc09eddb5b8a288328f706ce8a.gif" alt="ae818cdc09eddb5b8a288328f706ce8a.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's really weird because I agree with your explanation. For some reason it just won't ignore the field. You can see in the beginning of the GIF that the filter field is loja_sigla, just like in the set expression...&lt;/P&gt;
&lt;P&gt;I'm actually using a nested IF in the measure to deal with the other dimensions values too, not sure if it could be related, but it goes like this:&lt;/P&gt;
&lt;P&gt;If(cobertura_dimensao = 'Cobertura (24)',&lt;/P&gt;
&lt;P&gt;Num(&lt;BR /&gt;'$(=Sum({&amp;lt;ano = {'2024'}, mes = {'Jan'}, cobertura_dimensao = {'Estoque (24)'}&amp;gt;} cobertura_medida))'&lt;BR /&gt;/&lt;BR /&gt;'$(=Sum({&amp;lt;ano = {'2024'}, mes = {'Jan'}, cobertura_dimensao = {'Venda (24)'}&amp;gt;} cobertura_medida))'&lt;BR /&gt;,'##.##0,0'),&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If(cobertura_dimensao = 'Cobertura (23)',&lt;BR /&gt;&lt;BR /&gt;Num(&lt;BR /&gt;'$(=Sum({&amp;lt;ano = {'2023'}, mes = {'Jan'}, cobertura_dimensao = {'Estoque (23)'}&amp;gt;} cobertura_medida))'&lt;BR /&gt;/&lt;BR /&gt;'$(=Sum({&amp;lt;ano = {'2023'}, mes = {'Jan'}, cobertura_dimensao = {'Venda (23)'}&amp;gt;} cobertura_medida))'&lt;BR /&gt;,'##.##0,0'),&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;If(cobertura_dimensao = 'Pedido',&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Num(Sum({&amp;lt;loja_sigla = , key_cnpj = , mes = {'Jan'}&amp;gt;} cobertura_medida), '##.##0'),&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Num(Sum({1&amp;lt;mes = {'Jan'}, loja_sigla = $:: loja_sigla, key_produto_sku = $:: key_produto_sku, produto_referencia = $:: produto_referencia&amp;gt;} cobertura_medida), '##.##0')&lt;BR /&gt;&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Ignore the behavior of the other month columns, as I'm trying to fix it for January first so I can then apply to the other months.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 13:27:45 GMT</pubDate>
    <dc:creator>pedrohenriqueperna</dc:creator>
    <dc:date>2024-01-30T13:27:45Z</dc:date>
    <item>
      <title>{1} not ignoring filter selection, why???</title>
      <link>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412213#M94721</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a request to show in a straight table some non related measures by row, paired with different dimensions inside a "built dimension". It sounds confusing, but it's actually simple:&lt;/P&gt;
&lt;P&gt;I created a dimension that holds the following 'titles': inventory 2023, inventory 2024, coverage 2023, coverage 2024, sold units 2024, sold units 2023 and orders 2024.&lt;/P&gt;
&lt;P&gt;Then I calculated the values for each subject and added it to a table, so the dimension itself it's a mix of things that was grouped by sku_id, date_id and store_id.&lt;/P&gt;
&lt;P&gt;Everything seems to work fine except the 'orders'. Since it doesn't have a store_id I want to show the same value for every store. The only filters I'll have in the dashboard is for the stores, but even if I set analysis to ignore every filter in this field, it only shows the correct value if no store is selected, otherwise it updates to 0.&lt;/P&gt;
&lt;P&gt;I'm not sure what's happening, but I'm using the following expression:&lt;/P&gt;
&lt;P&gt;If(cobertura_dimensao = 'Pedido', // 'Order'&lt;BR /&gt;&lt;BR /&gt;Num(Sum({1&amp;lt;mes = {'Jan'}, produto_referencia = $:: produto_referencia, key_produto_sku = $:: key_produto_sku, ano = $:: ano, loja_sigla =, key_cnpj =&amp;gt;} cobertura_medida), '##.##0')&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;produto_referencia = reference code of the product (it groups different SKUs, as it won't consider size and color)&lt;/P&gt;
&lt;P&gt;key_produto_sku = product sku&lt;/P&gt;
&lt;P&gt;ano = year&lt;/P&gt;
&lt;P&gt;loja_sigla = store name&lt;/P&gt;
&lt;P&gt;key_cnpj = store id&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the print below you can see "Pedido" (orders) is ok, but as soon as I select a store it goes to 0&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_0-1706567437443.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158578i512046B0909099E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_0-1706567437443.png" alt="therealdees_0-1706567437443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how the data is structured:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_1-1706567704808.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158579i742E0EC3890874B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_1-1706567704808.png" alt="therealdees_1-1706567704808.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that there's no key_cnpj (store id), because there is no store id for an order. Still, filtering a store name will change the value displayed, even tho I'm using 1 in set analysis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 22:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412213#M94721</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-01-29T22:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: {1} not ignoring filter selection, why???</title>
      <link>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412223#M94722</link>
      <description>&lt;P&gt;Try this ...&lt;/P&gt;
&lt;P&gt;If(cobertura_dimensao = 'Pedido', &lt;BR /&gt;Num(&lt;BR /&gt;Sum({&amp;lt;loja_sigla=, key_cnpj=, mes={'Jan'}&amp;gt;} cobertura_medida), &lt;BR /&gt;'##.##0'&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Here's what this expression is intended to do:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Ignore selections in &lt;CODE&gt;loja_sigla&lt;/CODE&gt; and &lt;CODE&gt;key_cnpj&lt;/CODE&gt; by setting them to null in the set analysis (i.e., &lt;CODE&gt;loja_sigla=, key_cnpj=&lt;/CODE&gt;).&lt;/LI&gt;
&lt;LI&gt;Maintain selections in &lt;CODE&gt;mes&lt;/CODE&gt;, which is set to 'Jan'.&lt;/LI&gt;
&lt;LI&gt;Maintain any implicit selections in &lt;CODE&gt;produto_referencia&lt;/CODE&gt;, &lt;CODE&gt;key_produto_sku&lt;/CODE&gt;, and &lt;CODE&gt;ano&lt;/CODE&gt; since they are not mentioned in the set analysis, meaning the current selections will apply.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The part that might be causing confusion is the &lt;CODE&gt;$::&lt;/CODE&gt; syntax, which implies that you want to inherit the current selections for those fields. If &lt;CODE&gt;cobertura_medida&lt;/CODE&gt; does not relate to &lt;CODE&gt;loja_sigla&lt;/CODE&gt; or &lt;CODE&gt;key_cnpj&lt;/CODE&gt;, they should be excluded as shown above.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 23:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412223#M94722</guid>
      <dc:creator>Scotchy</dc:creator>
      <dc:date>2024-01-29T23:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: {1} not ignoring filter selection, why???</title>
      <link>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412563#M94757</link>
      <description>&lt;P&gt;Hi Scotchy, thanks for the reply!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately it didn't work. If I select a store it still changes the value to 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ae818cdc09eddb5b8a288328f706ce8a.gif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158635iC8E0877430CE5058/image-size/large?v=v2&amp;amp;px=999" role="button" title="ae818cdc09eddb5b8a288328f706ce8a.gif" alt="ae818cdc09eddb5b8a288328f706ce8a.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's really weird because I agree with your explanation. For some reason it just won't ignore the field. You can see in the beginning of the GIF that the filter field is loja_sigla, just like in the set expression...&lt;/P&gt;
&lt;P&gt;I'm actually using a nested IF in the measure to deal with the other dimensions values too, not sure if it could be related, but it goes like this:&lt;/P&gt;
&lt;P&gt;If(cobertura_dimensao = 'Cobertura (24)',&lt;/P&gt;
&lt;P&gt;Num(&lt;BR /&gt;'$(=Sum({&amp;lt;ano = {'2024'}, mes = {'Jan'}, cobertura_dimensao = {'Estoque (24)'}&amp;gt;} cobertura_medida))'&lt;BR /&gt;/&lt;BR /&gt;'$(=Sum({&amp;lt;ano = {'2024'}, mes = {'Jan'}, cobertura_dimensao = {'Venda (24)'}&amp;gt;} cobertura_medida))'&lt;BR /&gt;,'##.##0,0'),&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If(cobertura_dimensao = 'Cobertura (23)',&lt;BR /&gt;&lt;BR /&gt;Num(&lt;BR /&gt;'$(=Sum({&amp;lt;ano = {'2023'}, mes = {'Jan'}, cobertura_dimensao = {'Estoque (23)'}&amp;gt;} cobertura_medida))'&lt;BR /&gt;/&lt;BR /&gt;'$(=Sum({&amp;lt;ano = {'2023'}, mes = {'Jan'}, cobertura_dimensao = {'Venda (23)'}&amp;gt;} cobertura_medida))'&lt;BR /&gt;,'##.##0,0'),&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;If(cobertura_dimensao = 'Pedido',&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Num(Sum({&amp;lt;loja_sigla = , key_cnpj = , mes = {'Jan'}&amp;gt;} cobertura_medida), '##.##0'),&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Num(Sum({1&amp;lt;mes = {'Jan'}, loja_sigla = $:: loja_sigla, key_produto_sku = $:: key_produto_sku, produto_referencia = $:: produto_referencia&amp;gt;} cobertura_medida), '##.##0')&lt;BR /&gt;&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Ignore the behavior of the other month columns, as I'm trying to fix it for January first so I can then apply to the other months.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 13:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412563#M94757</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-01-30T13:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: {1} not ignoring filter selection, why???</title>
      <link>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412579#M94759</link>
      <description>&lt;P&gt;I did the most obvious, but least recommended that is loop every store_id and add the same value for each. Then I set analysis to a single store and it works, it doesn't respond to the filters anymore... This is far from the ideal and in this case it worked because there aren't so many rows for orders, but it could be a problem depending on the data size.&lt;/P&gt;
&lt;P&gt;I'm still very curious to understand this behavior...&lt;/P&gt;
&lt;P&gt;I believe it's related to the fact that there are no store_names available in the filter. If I filter select 'Pedido' and then click on the store filter, every value is gray, which means the data will cancel every filter selection if I click on an unavailable value. Maybe it happens in a similar way when using the set analysis...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anyone has a tip on this I'd be very thankful.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 14:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412579#M94759</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-01-30T14:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: {1} not ignoring filter selection, why???</title>
      <link>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412717#M94783</link>
      <description>&lt;P&gt;Ok, I found a solution and I think I understand the reason behind this.&lt;/P&gt;
&lt;P&gt;It happens when there's no record for such store_id or product_sku, so for some reason it won't ignore the filters and show something else because there's no alternative.&lt;/P&gt;
&lt;P&gt;This post helped me out:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Show-zero-for-no-records/td-p/1969549" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Show-zero-for-no-records/td-p/1969549&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I sum Sum({1} 0) to the expression it works as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({1&amp;lt;loja_sigla = , key_cnpj = , mes = , ano = , cobertura_dimensao = {'Pedido'}, produto_referencia = $:: produto_referencia&amp;gt;} cobertura_medida)&lt;BR /&gt;+&lt;BR /&gt;Sum({1} 0)&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 17:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2412717#M94783</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-01-30T17:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: {1} not ignoring filter selection, why???</title>
      <link>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2413286#M94850</link>
      <description>&lt;P&gt;Looks like you found a solution which is good to hear.&lt;/P&gt;
&lt;P&gt;Have a&amp;nbsp; great day.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 22:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-not-ignoring-filter-selection-why/m-p/2413286#M94850</guid>
      <dc:creator>Scotchy</dc:creator>
      <dc:date>2024-01-31T22:36:15Z</dc:date>
    </item>
  </channel>
</rss>

