<?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 How make a selection in a Pivot table from a button depending on expression values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-make-a-selection-in-a-Pivot-table-from-a-button-depending-on/m-p/190956#M53240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;I've left the idea of looping through the table since it just has to simpler than that.&lt;/P&gt;&lt;P&gt;I've created a small example with a very small Pivot-table. What I try to accomplish is to select just the rows which has positive values in the right column "summed values".&lt;/P&gt;&lt;P&gt;I've included a very small macro with just one row:&lt;/P&gt;&lt;P&gt;ActiveDocument.GetField("ID").Select ActiveDocument.Evaluate("sum(VALUE)'&amp;gt;'&amp;amp;0")&lt;/P&gt;&lt;P&gt;but it doesn't work at all. Anyone know how to do this in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jun 2010 07:24:44 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2010-06-23T07:24:44Z</dc:date>
    <item>
      <title>How make a selection in a Pivot table from a button depending on expression values</title>
      <link>https://community.qlik.com/t5/QlikView/How-make-a-selection-in-a-Pivot-table-from-a-button-depending-on/m-p/190955#M53239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi foolks,&lt;/P&gt;&lt;P&gt;I have a pivot table which in one expression holds the change in %.&lt;/P&gt;&lt;P&gt;I want to select just those rows which has a positive change.&lt;/P&gt;&lt;P&gt;My idea is to write a macro and loop through the pivot table and check if that column has a positive number. If so get the value from the first dimension and store that in an array and use that to make a selection on that field.&lt;/P&gt;&lt;P&gt;My first little problem is to convert from the text 4,8% into the double 4,8.&lt;/P&gt;&lt;P&gt;I've tried several conversion functions but cannot find any one that works in the Qlikview environment.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;function SelectTG1(criteria)&lt;BR /&gt;'first sort the table on TG1&lt;BR /&gt;' SortTG1Func()&lt;BR /&gt;&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("CH03")&lt;BR /&gt;&lt;BR /&gt; set table = ActiveDocument.GetSheetObject( "CH03" )&lt;BR /&gt; for RowIter = 1 to table.GetRowCount-1&lt;BR /&gt; set tg1Change= table.GetCell(RowIter,11)&lt;BR /&gt; set cell = table.GetCell(RowIter,0)&lt;BR /&gt; if(NOT cell.IsNull AND cell.Length) THEN&lt;BR /&gt; 'remove editing characters and convert text to a number&lt;BR /&gt; set current_value=CDbl(replace(tg1Change.text,"%",""))&lt;BR /&gt; msgbox(tg1Change.Text)&lt;BR /&gt; msgbox(current_value)&lt;BR /&gt; END IF&lt;BR /&gt;&lt;BR /&gt; next&lt;BR /&gt;end function&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;brgds&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 14:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-make-a-selection-in-a-Pivot-table-from-a-button-depending-on/m-p/190955#M53239</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2010-06-16T14:25:44Z</dc:date>
    </item>
    <item>
      <title>How make a selection in a Pivot table from a button depending on expression values</title>
      <link>https://community.qlik.com/t5/QlikView/How-make-a-selection-in-a-Pivot-table-from-a-button-depending-on/m-p/190956#M53240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;I've left the idea of looping through the table since it just has to simpler than that.&lt;/P&gt;&lt;P&gt;I've created a small example with a very small Pivot-table. What I try to accomplish is to select just the rows which has positive values in the right column "summed values".&lt;/P&gt;&lt;P&gt;I've included a very small macro with just one row:&lt;/P&gt;&lt;P&gt;ActiveDocument.GetField("ID").Select ActiveDocument.Evaluate("sum(VALUE)'&amp;gt;'&amp;amp;0")&lt;/P&gt;&lt;P&gt;but it doesn't work at all. Anyone know how to do this in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 07:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-make-a-selection-in-a-Pivot-table-from-a-button-depending-on/m-p/190956#M53240</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2010-06-23T07:24:44Z</dc:date>
    </item>
  </channel>
</rss>

