<?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: Conditional display of rows in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292850#M403965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, your calc only restricts what appears to column d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 13:23:25 GMT</pubDate>
    <dc:creator>awhitfield</dc:creator>
    <dc:date>2017-03-28T13:23:25Z</dc:date>
    <item>
      <title>Conditional display of rows in table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292847#M403962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am building the table shown below.&lt;/P&gt;&lt;P&gt;Column C = B/30&amp;nbsp;&amp;nbsp; - this is the average over the last 30 weeks&lt;/P&gt;&lt;P&gt;I am only interested in showing those rows where C is greater than the value selected in E (this is stored in a variable call &lt;STRONG&gt;vThreshold&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added in the expression for column &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;= if([Shipments Last 30 weeks (Average)] &amp;gt;= vThreshold,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;(([Shipments Last Week (Actual)] - [Shipments Last 30 weeks (Average)]) / [Shipments Last 30 weeks (Average)])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has had the effect of not calculating column D for those under the threshold but not hiding the row which was my intent - any suggestions would be welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ClientBehaviour.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157908_ClientBehaviour.jpg" style="height: 438px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292847#M403962</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2017-03-28T13:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional display of rows in table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292848#M403963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vThreshold should be &lt;EM&gt;$(vThreshold)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292848#M403963</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-03-28T13:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional display of rows in table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292849#M403964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;Thanks for the reply - changed it to $(vThreshold) and it still shows the rows where C is less than threshold.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292849#M403964</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2017-03-28T13:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional display of rows in table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292850#M403965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, your calc only restricts what appears to column d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292850#M403965</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-03-28T13:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional display of rows in table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292851#M403966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to make the whole row disappears when the value in column c is less than the v threshold value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292851#M403966</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-03-28T13:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional display of rows in table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292852#M403967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YES - that is certainly what I want ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292852#M403967</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2017-03-28T13:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional display of rows in table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292853#M403968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue here is that I am deciding whether to include or exclude a row based on an &lt;STRONG&gt;expression&lt;/STRONG&gt; that I calculate on the fly (the average shipments in this case) - however, I am sure that this is a common requirement but have spent hours on this already with no luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292853#M403968</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2017-03-28T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional display of rows in table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292854#M403969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't use a column as condition for showing or not your value if this column is already showing or not a value based on a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround is to write the full expression.&lt;/P&gt;&lt;P&gt;Let's say your column A is&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(Shipments)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;your column B is&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(Last30)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;and your column C is&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;B/30&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then, you modify your expressions:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In the column C (it's the key expression), you don't use references to other columns, but full expressions:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(sum(Last30) / 30 &amp;gt; vThreshold, sum(Last30) / 30)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;your column A will be&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(C, sum(Shipments))&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;your column B will be&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(C, sum(Last30))&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;your column D will be&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(C, (A - C) / C)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;(for A, B and D, you can use column name instead of full expressions)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Best regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 10:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292854#M403969</guid>
      <dc:creator>nicolas_martin</dc:creator>
      <dc:date>2017-03-29T10:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional display of rows in table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292855#M403970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect answer Nicolas - works perfectly - THANK YOU!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 22:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-display-of-rows-in-table/m-p/1292855#M403970</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2017-03-29T22:28:43Z</dc:date>
    </item>
  </channel>
</rss>

