<?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: acces variable in inline object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384785#M491434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thks a lot for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2012 11:42:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-06T11:42:33Z</dc:date>
    <item>
      <title>acces variable in inline object</title>
      <link>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384781#M491430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code&lt;/P&gt;&lt;P&gt;threshold:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;key, warningv, errorv&lt;/P&gt;&lt;P&gt;'test1', 6500, 7000&lt;/P&gt;&lt;P&gt;'test2', 3000, 4000&lt;/P&gt;&lt;P&gt;'test3', 2500, 2000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;testtable:&lt;/P&gt;&lt;P&gt;inner join(threshold)&lt;/P&gt;&lt;P&gt;LOAD 'test1' as key, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 as timetest1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as s2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as s3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4 as s4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2+@3+@4 as mysum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (@2+@3+@4 &amp;lt; &lt;STRONG&gt;warningv &lt;/STRONG&gt;,'green', 'red' ) as availability&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With warningv it does not work, how can I user variable in order to compare @2+@3+@4 with 6500 (value of warningv in test1 from threshold table)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;valery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 09:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384781#M491430</guid>
      <dc:creator />
      <dc:date>2012-09-06T09:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: acces variable in inline object</title>
      <link>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384782#M491431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try something like:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;threshold:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;key, warningv, errorv&lt;/P&gt;&lt;P&gt;'test1', 6500, 7000&lt;/P&gt;&lt;P&gt;'test2', 3000, 4000&lt;/P&gt;&lt;P&gt;'test3', 2500, 2000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;testtable:&lt;/P&gt;&lt;P&gt;inner join(threshold)&lt;/P&gt;&lt;P&gt;LOAD 'test1' as key, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 as timetest1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as s2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as s3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4 as s4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2+@3+@4 as mysum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: line-through;"&gt;//if (@2+@3+@4 &amp;lt; &lt;STRONG&gt;warningv &lt;/STRONG&gt;,'green', 'red' ) as availability&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;threshold1:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;LOAD&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;key, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;warningv, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;errorv,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;timetest1,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;s2,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;s3,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;s4,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;mysum,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;if(mysum&amp;lt;warning, 'green', 'red') as as availability&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Resident threshold;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;drop table threshold;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 09:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384782#M491431</guid>
      <dc:creator>daveamz</dc:creator>
      <dc:date>2012-09-06T09:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: acces variable in inline object</title>
      <link>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384783#M491432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks for your response.  I am new in QV.  Why do you drop threshold?&lt;/P&gt;&lt;P&gt;moreover why don't you drop also testtable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's the goal of droping table? memory space?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 10:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384783#M491432</guid>
      <dc:creator />
      <dc:date>2012-09-06T10:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: acces variable in inline object</title>
      <link>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384784#M491433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Otherwise QV will try to link the tables by common keys and you will end up with synthetinc keys which you must avoid.&lt;/P&gt;&lt;P&gt;Also, you can comment the drop line to see what happens.Testing is one way of learning. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 10:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384784#M491433</guid>
      <dc:creator>daveamz</dc:creator>
      <dc:date>2012-09-06T10:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: acces variable in inline object</title>
      <link>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384785#M491434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thks a lot for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 11:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/acces-variable-in-inline-object/m-p/384785#M491434</guid>
      <dc:creator />
      <dc:date>2012-09-06T11:42:33Z</dc:date>
    </item>
  </channel>
</rss>

