<?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: Ignore selection in if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637776#M446946</link>
    <description>&lt;P&gt;Hello EMCK,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output of the if-statement below may be an array of values (few article names). That's why QV may not be visualizing it.&lt;/P&gt;&lt;P&gt;Could you please try this solution (I changed a bit your set expression to fit my data set):&lt;/P&gt;&lt;P&gt;=Concat(distinct{1&amp;lt;Articlsegment={'Schrauben'},PublishedYear={2019},PublishedWeek={"$(=(39-1))"}&amp;gt;} ArticleName, chr(10))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 782px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22004i94FB2E8050CE1228/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the data I used for the mock-up:&lt;/P&gt;&lt;P&gt;Articles:&lt;BR /&gt;LOAD&lt;BR /&gt;ArticleName&lt;BR /&gt;, ArticleID&lt;BR /&gt;, Articlsegment&lt;BR /&gt;, Date(Date#([Published Date], 'DD/MM/YYYY')) as [Published Date]&lt;BR /&gt;, Week(Date(Date#([Published Date], 'DD/MM/YYYY'))) as Week&lt;BR /&gt;;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ArticleName, ArticleID, Published Date,Articlsegment&lt;BR /&gt;Article About Screws, 1,21/09/2019,Schrauben&lt;BR /&gt;Article About Screwdrivers, 2, 21/09/2019,Schrauben&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 960px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22001i59DDCD4DDA8EC169/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 11:59:42 GMT</pubDate>
    <dc:creator>Stoyan_Terziev</dc:creator>
    <dc:date>2019-10-21T11:59:42Z</dc:date>
    <item>
      <title>Ignore selection in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637739#M446940</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;this is my problem (maybe easy to solve, but I miss the right way):&lt;/P&gt;&lt;P&gt;I need to display a table with an all values of a defined Selection, but ignorering the current selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With set analysis it works perfect:&lt;/P&gt;&lt;P&gt;count(distinct{1&amp;lt;Year={"$(=max(Year))"},Articlsegment={'Schrauben'},PublishedYear&lt;SPAN&gt;={2019},,PublishedWeek={"$(=(Week-1))"}&amp;gt;}[ArticelNo]).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This works because expression and dimension are aggregation functions. In the table the dimension isn't an aggregation function, so set analysis doen' t work. The if statement looks like:&lt;/P&gt;&lt;P&gt;=if (&lt;BR /&gt;Articelsegment=('Schrauben') and PublishedWeek=(Week-1) and PublishedYear=(Year)&lt;BR /&gt;,NameArticel) . The problem is, that the if statement is influenced by the current selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is: Can I turn the if statement into a set analysis? Or how can I attach the if statement, to ignore the current selection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deutsch/German&lt;/P&gt;&lt;P&gt;Hallo zusammen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ich habe folgendes Problem (wahrscheinlich leicht zu lösen, aber mir fehlt der richtige weg). Ich möchte in einem Dashboard eine Tabelle darstellen, die sämtliche Werte einer definierten Auswahl anzeigt, ohne jedoch die aktuelle Auswahl (current selection) mit einzubeziehen.&lt;/P&gt;&lt;P&gt;Mit der set analysis habe ich dieses erfolgreich programmiert:&amp;nbsp;&lt;/P&gt;&lt;P&gt;count(distinct{1&amp;lt;Year={"$(=max(Year))"},Articlsegment={'Schrauben'},PublishedYear&lt;SPAN&gt;={2019},,PublishedWeek={"$(=(Week-1))"}&amp;gt;}[ArticelNo]). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dies funktioniert, weil Expression eine Aggregierungsfunktion ist. Nun soll aber zusätzlich die Produktbezeichnung aufgenommen werden. Diese wird nicht aggregiert, so dass die Set Analysis nicht greift. Das verwendete if Statement liefert aber&amp;nbsp;nicht alle Daten, weil das if Statement wiederum die Aktuelle Auswahl (die nicht leer sein darf) berücksichtigt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=if (&lt;BR /&gt;Articelsegment=('Schrauben') and Veroeff_Ab_Artikel_Woche=(Week-1) and Veroeff_Ab_Artikel_Jahr=(Year)&lt;BR /&gt;,NameArticel)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daher nun meine Frage: Wie bringe ich dem If Statement bei, die aktuelle Auswahl zuignorieren, oder wie verwandle ich das if Statement in eine Setanalysis um?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 11:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637739#M446940</guid>
      <dc:creator>EMCK</dc:creator>
      <dc:date>2019-10-21T11:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selection in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637771#M446945</link>
      <description>&lt;P&gt;The if statement is used as an expression or dimension?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 11:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637771#M446945</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-21T11:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selection in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637776#M446946</link>
      <description>&lt;P&gt;Hello EMCK,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output of the if-statement below may be an array of values (few article names). That's why QV may not be visualizing it.&lt;/P&gt;&lt;P&gt;Could you please try this solution (I changed a bit your set expression to fit my data set):&lt;/P&gt;&lt;P&gt;=Concat(distinct{1&amp;lt;Articlsegment={'Schrauben'},PublishedYear={2019},PublishedWeek={"$(=(39-1))"}&amp;gt;} ArticleName, chr(10))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 782px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22004i94FB2E8050CE1228/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the data I used for the mock-up:&lt;/P&gt;&lt;P&gt;Articles:&lt;BR /&gt;LOAD&lt;BR /&gt;ArticleName&lt;BR /&gt;, ArticleID&lt;BR /&gt;, Articlsegment&lt;BR /&gt;, Date(Date#([Published Date], 'DD/MM/YYYY')) as [Published Date]&lt;BR /&gt;, Week(Date(Date#([Published Date], 'DD/MM/YYYY'))) as Week&lt;BR /&gt;;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ArticleName, ArticleID, Published Date,Articlsegment&lt;BR /&gt;Article About Screws, 1,21/09/2019,Schrauben&lt;BR /&gt;Article About Screwdrivers, 2, 21/09/2019,Schrauben&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 960px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22001i59DDCD4DDA8EC169/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 11:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637776#M446946</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-10-21T11:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selection in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637779#M446947</link>
      <description>&lt;P&gt;used in Both&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637779#M446947</guid>
      <dc:creator>EMCK</dc:creator>
      <dc:date>2019-10-21T12:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selection in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637781#M446948</link>
      <description>&lt;P&gt;Both? You use this same expression as expression in a measure and dimension? What is the use of doing that? I am confused.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637781#M446948</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-21T12:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selection in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637797#M446952</link>
      <description>&lt;P&gt;Works perfect, Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selection-in-if-statement/m-p/1637797#M446952</guid>
      <dc:creator>EMCK</dc:creator>
      <dc:date>2019-10-21T12:30:37Z</dc:date>
    </item>
  </channel>
</rss>

