<?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: How to call the function from straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-call-the-function-from-straight-table/m-p/425095#M1155157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks a lot.. it is perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Mar 2013 18:20:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-09T18:20:07Z</dc:date>
    <item>
      <title>How to call the function from straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-the-function-from-straight-table/m-p/425092#M1155154</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;I have written a function to calculate the performance bounce.&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;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;function Partner_policy( rt , ctr)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim temprt&lt;BR /&gt;dim tempctr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temprt=rt&lt;BR /&gt;tempctr=ctr&lt;BR /&gt;temp&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (temprt&amp;lt;80 and tempctr&amp;lt;65) then&lt;BR /&gt;temp=temprt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif ((temprt&amp;gt;=80 and temprt&amp;lt;85) and ctr&amp;lt;65) then&lt;BR /&gt;temp=70&lt;BR /&gt;elseif ((temprt&amp;gt;=85 and temprt&amp;lt;90) and ctr&amp;lt;65) then&lt;BR /&gt;temp=75&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Partner_policy=temp&lt;BR /&gt;end function &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿Now i the rt &amp;amp; ctr loaded in straight table. so i want this performance bounce to be loaded in straight table can anyone help me in this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Grace Rashmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 10:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-the-function-from-straight-table/m-p/425092#M1155154</guid>
      <dc:creator />
      <dc:date>2013-03-09T10:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to call the function from straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-the-function-from-straight-table/m-p/425093#M1155155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use the function in a straight table. And you don't &lt;EM&gt;need &lt;/EM&gt;the function in the script. Create a new field in the script: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (rt&amp;lt;80 and ctr&amp;lt;65), rt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (rt&amp;gt;=80 and rt&amp;lt;85 and ctr&amp;lt;65, 70,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (rt&amp;gt;=85 and rt&amp;lt;90 and ctr&amp;lt;65, 75))) as Partner_policy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 11:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-the-function-from-straight-table/m-p/425093#M1155155</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-09T11:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to call the function from straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-the-function-from-straight-table/m-p/425094#M1155156</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;Create a variable like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Expression =&amp;nbsp; if ($1&amp;lt;80 and $2&amp;lt;65), rt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($1&amp;gt;=80 and $1&amp;lt;85 and $2&amp;lt;65, 70,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($1&amp;gt;=85 and $1&amp;lt;90 and $2&amp;lt;65, 75)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and use this variable in the expression of straight table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(Expression(rt, ctr))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/docs/DOC-3836" title="http://community.qlik.com/docs/DOC-3836"&gt;http://community.qlik.com/docs/DOC-3836&lt;/A&gt; for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This calculates the performance in straight table itself.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/gwassenaar" id="jive-9654416212615588152340"&gt;Gysbert Wassenaar&amp;nbsp;&amp;nbsp; &lt;/A&gt;suggestion it is better calculate in the script itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 12:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-the-function-from-straight-table/m-p/425094#M1155156</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-09T12:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to call the function from straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-the-function-from-straight-table/m-p/425095#M1155157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks a lot.. it is perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 18:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-the-function-from-straight-table/m-p/425095#M1155157</guid>
      <dc:creator />
      <dc:date>2013-03-09T18:20:07Z</dc:date>
    </item>
  </channel>
</rss>

