<?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 Skipping lines with zero values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349176#M574726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a table with fixed assets showing the following columns:&lt;/P&gt;&lt;P&gt;1. Asset number &lt;/P&gt;&lt;P&gt;2. AssetDescription&lt;/P&gt;&lt;P&gt;3. Cost, &lt;/P&gt;&lt;P&gt;4. Accum. Depreciation&lt;/P&gt;&lt;P&gt;5.Net Book Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column 3 is an expression with formula (x)&lt;/P&gt;&lt;P&gt;Column 4 is an expression with formula (y)&lt;/P&gt;&lt;P&gt;Column 5 ( net book Value) is the result of column 3 -/- Column 4 i.e. Formula(x) -/- formula (y)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user asked me to switch between Only showing columns with Net Book Value &amp;gt; 0 or Showing all columns ( Inlcusing NBV = 0 )&lt;/P&gt;&lt;P&gt;I van make a variable and let the user choose the option, but how can i implement the selection i.e. showing only columns with NVB &amp;gt; 0 or showing all columns ? I can see/find no option to conditionally skip a line in the table depending on a condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2012 14:09:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-12T14:09:11Z</dc:date>
    <item>
      <title>Skipping lines with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349176#M574726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a table with fixed assets showing the following columns:&lt;/P&gt;&lt;P&gt;1. Asset number &lt;/P&gt;&lt;P&gt;2. AssetDescription&lt;/P&gt;&lt;P&gt;3. Cost, &lt;/P&gt;&lt;P&gt;4. Accum. Depreciation&lt;/P&gt;&lt;P&gt;5.Net Book Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column 3 is an expression with formula (x)&lt;/P&gt;&lt;P&gt;Column 4 is an expression with formula (y)&lt;/P&gt;&lt;P&gt;Column 5 ( net book Value) is the result of column 3 -/- Column 4 i.e. Formula(x) -/- formula (y)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user asked me to switch between Only showing columns with Net Book Value &amp;gt; 0 or Showing all columns ( Inlcusing NBV = 0 )&lt;/P&gt;&lt;P&gt;I van make a variable and let the user choose the option, but how can i implement the selection i.e. showing only columns with NVB &amp;gt; 0 or showing all columns ? I can see/find no option to conditionally skip a line in the table depending on a condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 14:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349176#M574726</guid>
      <dc:creator />
      <dc:date>2012-06-12T14:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping lines with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349177#M574727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A solution could be to create a sixth column. This one will say if NBC &amp;gt;0 is true or false. With this, you can use it in a list box to simply reduce your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;if(column 3 -/- Column 4)&amp;gt;0,'Positive NBC','NBC = 0') as NBC&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 14:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349177#M574727</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-06-12T14:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping lines with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349178#M574728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but i'm a bit new in QV, and dp not understand the solution.&lt;/P&gt;&lt;P&gt;I created a 6th column (Exprwession saying:&lt;/P&gt;&lt;P&gt;If ( Expression 3 -/- expression 4&amp;nbsp; =0, 'Y','N')&lt;/P&gt;&lt;P&gt;and indeed in the table the column is showing 'Y' if the NBV = 0, and&amp;nbsp; 'N'if NBV &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;But then i'm lost with your solution on how to use this in a list box to simply reduce my data?&lt;/P&gt;&lt;P&gt;What do i have to do with the list box then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 15:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349178#M574728</guid>
      <dc:creator />
      <dc:date>2012-06-12T15:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping lines with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349179#M574729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your script worked well, you should have Y for the lines where NBC = 0 and N where NBC &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First check if it's the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this field, you can simply select only lines &amp;lt;&amp;gt; 0, =0 or both. Creat a list box with this field and you can use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other solution could be to create a Button and set an action to select N in your field 6 when user clic and clear this selection when reclic. If this solution meet your needs i can explain more on How To Do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 08:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349179#M574729</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-06-13T08:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping lines with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349180#M574730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think why we do have a mis communication.&lt;/P&gt;&lt;P&gt;When i said i have a table, i meant i defined a table object in QV, based on 3 Data tabels/views.&lt;/P&gt;&lt;P&gt;1 table/view is fixed assets&lt;/P&gt;&lt;P&gt;1 table/view is fixed assets / years ( Per Asset/Year i have the starting balance)&lt;/P&gt;&lt;P&gt;1 table/view is fxied assets/Years/Periods ( per Asset/Year/Period i have the period depreciation amounts)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on these 3 MSSQL tables which i loaded in the QV script, i build in QV 1 'Table' object with 2 dimensions &lt;/P&gt;&lt;P&gt;( Asset number and asset description from table Fixed assets)&lt;/P&gt;&lt;P&gt;Then i have columns 3,4,5 which are all expressions like for example columns 3 Costs = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;abyYear={$(Year)},abyBalanceCode={1} &amp;gt;} abyAmountBegBalancePY) + &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;abyYear={$(Year)},abpPeriod={"&amp;gt;=1 &amp;lt;=$(Periode)"},abyBalanceCode={1} &amp;gt;} abpAmount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Column 5 showing the NBV is also an expression which has an amount as result.&lt;/P&gt;&lt;P&gt;The user wants to chose to show also these lines when they are 0,00 or not.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So when i did what you said, i put the expression of column 5 in a list box, but this was not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 13:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349180#M574730</guid>
      <dc:creator />
      <dc:date>2012-06-13T13:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping lines with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349181#M574731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I though you were at script level sorry...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try to create a list Box using an expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( if(Expression 3 / Expression 4 = 0,'Y','N'),Asset number)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 08:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349181#M574731</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-06-14T08:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping lines with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349182#M574732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. This was the answer i was looking for.!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skipping-lines-with-zero-values/m-p/349182#M574732</guid>
      <dc:creator />
      <dc:date>2012-06-14T13:08:08Z</dc:date>
    </item>
  </channel>
</rss>

