<?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: If statement in a variable of type LET in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866065#M1003941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;Daniel has resolved the issue. &lt;/P&gt;&lt;P&gt;Req; Summing coulmn of values based on another coulmn value.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2015 06:07:05 GMT</pubDate>
    <dc:creator>hariprasadqv</dc:creator>
    <dc:date>2015-05-28T06:07:05Z</dc:date>
    <item>
      <title>If statement in a variable of type LET</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866057#M1003933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2, F3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 23, 18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 24, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 25, 34&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lET VT1=SUM(F2);&lt;/P&gt;&lt;P&gt;lET vT2=SUM(F3);&lt;/P&gt;&lt;P&gt;Let vt= if([F1]="A",VT1,vT2);&lt;/P&gt;&lt;P&gt;What is the wrong with the if statement;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866057#M1003933</guid>
      <dc:creator>hariprasadqv</dc:creator>
      <dc:date>2015-05-28T05:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in a variable of type LET</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866058#M1003934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the first part consider the script below. The if statement cant work as a variable can only store one value at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1432789915097101" jivemacro_uid="_1432789915097101"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2, F3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 23, 18&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 24, 12&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 25, 34&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sumtab:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;sum(F2) as F2sum,&lt;/P&gt;
&lt;P&gt;sum(F3) as F3sum&lt;/P&gt;
&lt;P&gt;Resident Data;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET VT1 = Peek('F2sum');&lt;/P&gt;
&lt;P&gt;LET VT2 = Peek('F3sum');&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866058#M1003934</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-05-28T05:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in a variable of type LET</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866059#M1003935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Field names are cannot use directly in the variables either it could use Peek or FieldValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope your intention is different. Let me know whether below script helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2, F3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 23, 18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 24, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 25, 34&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;Load F1, If(F1='A', Sum(F2), Sum(F3)) AS VT&lt;/P&gt;&lt;P&gt;Resident T&lt;/P&gt;&lt;P&gt;Group By F1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866059#M1003935</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2015-05-28T05:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in a variable of type LET</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866060#M1003936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to pick only one value. And I have to display it in a Text Object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866060#M1003936</guid>
      <dc:creator>hariprasadqv</dc:creator>
      <dc:date>2015-05-28T05:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in a variable of type LET</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866061#M1003937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please find attached a revised version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14327924613972028" jivemacro_uid="_14327924613972028"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2, F3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 23, 18&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 24, 12&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 25, 34&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sumtab:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;sum(F2) as F2sum,&lt;/P&gt;
&lt;P&gt;sum(F3) as F3sum&lt;/P&gt;
&lt;P&gt;Resident Data;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET VT1 = Peek('F2sum');&lt;/P&gt;
&lt;P&gt;LET VT2 = Peek('F3sum');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;sum(if([F1]='A', $(VT1),$(VT2))) as Result&lt;/P&gt;
&lt;P&gt;Resident Data;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vt = Peek('Result');&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866061#M1003937</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-05-28T05:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in a variable of type LET</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866062#M1003938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need variables in script. Try this expr in Text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;F1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;='A',1,0)),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;F1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)) = 1,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;F3&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866062#M1003938</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-28T05:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in a variable of type LET</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866063#M1003939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to help you. What is exact requirement...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866063#M1003939</guid>
      <dc:creator />
      <dc:date>2015-05-28T05:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in a variable of type LET</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866064#M1003940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think Daniel reply is help you...&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 06:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866064#M1003940</guid>
      <dc:creator />
      <dc:date>2015-05-28T06:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in a variable of type LET</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866065#M1003941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;Daniel has resolved the issue. &lt;/P&gt;&lt;P&gt;Req; Summing coulmn of values based on another coulmn value.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 06:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-a-variable-of-type-LET/m-p/866065#M1003941</guid>
      <dc:creator>hariprasadqv</dc:creator>
      <dc:date>2015-05-28T06:07:05Z</dc:date>
    </item>
  </channel>
</rss>

