<?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: Calling a sheet object in a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401394#M487201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't. If you want to reuse an expression don't use column references. Use variables that are chart (-layout) independant. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vExpr1: sum(Value1)&lt;/P&gt;&lt;P&gt;vExpr2: sum(Value2)&lt;/P&gt;&lt;P&gt;vExpr3: rangemax( $(vExpr1), $(vExpr2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column3: $(vExpr1)&lt;/P&gt;&lt;P&gt;Column5: $(vExpr2)&lt;/P&gt;&lt;P&gt;RC02 Min Percentage: $(vExpr3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An expression in some other chart: $(vExpr3). If that chart uses the same dimensions it will return the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;The $ is to force evaluation of the variable. It's called dollar expansion. You can see how that works by trying it out in a text box &lt;/SPAN&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=vVariance&lt;/EM&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; versus &lt;/SPAN&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=$(vVariance)&lt;/EM&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Mar 2013 14:34:41 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-03-04T14:34:41Z</dc:date>
    <item>
      <title>Calling a sheet object in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401388#M487195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asked this question in another thread, but it deserves it's own thread, I think. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to point to an object ID, and then a column in that object, in a variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= (ObjectID(ColumnNumber)) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 04:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401388#M487195</guid>
      <dc:creator />
      <dc:date>2013-03-04T04:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a sheet object in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401389#M487196</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;You can try with getcell function.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not yet tried it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This below example I got it from API guide:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "CH01" )&lt;/P&gt;&lt;P&gt;for RowIter = 0 to table.GetRowCount-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ColIter =0 to table.GetColumnCount-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set cell = table.GetCell(RowIter,ColIter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(cell.Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 05:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401389#M487196</guid>
      <dc:creator />
      <dc:date>2013-03-04T05:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a sheet object in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401390#M487197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By writing macro , Its working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub StraightTableCell&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "CH01" )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set cell = table.GetCell(1,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(cell.Text)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 05:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401390#M487197</guid>
      <dc:creator />
      <dc:date>2013-03-04T05:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a sheet object in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401391#M487198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthiks, could you break down exactly what that is doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table called "RC", and the field is "column(10)", if you can possibly use that info and show me how to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 13:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401391#M487198</guid>
      <dc:creator />
      <dc:date>2013-03-04T13:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a sheet object in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401392#M487199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a picture of the table I'm referring to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the "RC02 Min Percentage" cell? That does a calculation to determine the lowest percentage value of all the values in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to call to that, in a bar chart. I have about 10 of these straight tables, and I need to show each table's lowest percentage value inside of the bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping there's a way to set a variable to that table's cell (which is called column(10)), and then call the variable inside of the bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="34297" class="jive-image" alt="Untitled.jpg" src="https://community.qlik.com/legacyfs/online/34297_Untitled.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 13:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401392#M487199</guid>
      <dc:creator />
      <dc:date>2013-03-04T13:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a sheet object in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401393#M487200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess my question is, how does the variable know which table I'm talking about? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the "RC02 Min Percentage" column, the expression just says "if ((Column(3)&amp;lt;=Column(5)), Column(3), Column(5))"... It's a simple if statement to pull the min value down. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put that in the variable, it won't know which of my 10 tables I'm talking about. They all have columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better, more distinct way to do the min, that the variable would know which fields I'm speaking of, in which tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 14:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401393#M487200</guid>
      <dc:creator />
      <dc:date>2013-03-04T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a sheet object in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401394#M487201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't. If you want to reuse an expression don't use column references. Use variables that are chart (-layout) independant. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vExpr1: sum(Value1)&lt;/P&gt;&lt;P&gt;vExpr2: sum(Value2)&lt;/P&gt;&lt;P&gt;vExpr3: rangemax( $(vExpr1), $(vExpr2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column3: $(vExpr1)&lt;/P&gt;&lt;P&gt;Column5: $(vExpr2)&lt;/P&gt;&lt;P&gt;RC02 Min Percentage: $(vExpr3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An expression in some other chart: $(vExpr3). If that chart uses the same dimensions it will return the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;The $ is to force evaluation of the variable. It's called dollar expansion. You can see how that works by trying it out in a text box &lt;/SPAN&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=vVariance&lt;/EM&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; versus &lt;/SPAN&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=$(vVariance)&lt;/EM&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 14:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401394#M487201</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-04T14:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a sheet object in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401395#M487202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay I think I see what you're saying - could you humor me, and tell me how I would set it up, in my example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty confused when it comes to variables and how to set them up, and I'm only about 2 weeks new to Qlikview. lol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would I make a variable for column 3 and 5, and put the same expression I now have in those columns inside of the variable? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the $ make the variable know it's a value I'm returning, I think?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I can call to the variable in my bar chart, and return the value in the variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton for this, by the way. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 14:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-sheet-object-in-a-variable/m-p/401395#M487202</guid>
      <dc:creator />
      <dc:date>2013-03-04T14:52:35Z</dc:date>
    </item>
  </channel>
</rss>

