<?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 doesn't return anything in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887024#M1014366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, sorry.. this was added after the SR3 version I'm using&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 14:29:16 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2015-04-09T14:29:16Z</dc:date>
    <item>
      <title>If statement doesn't return anything</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887017#M1014358</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;I have an if statement which i want to return returns '{"=$(vMargin2)&amp;gt;.30"}' but it returns nothing .. condition works fine but&lt;/P&gt;&lt;P&gt;still can return other string not this .. I could able to sort out issue .. what can be the problem or any syntax mistakes ??&lt;/P&gt;&lt;P&gt;where vMargin2 = &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;{"=((Sum({&amp;lt;DocDate={'$(vTempID)'}&amp;gt;}LineTotal)-sum({&amp;lt;DocDate={'$(vTempID)'}&amp;gt;}LineNLC))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/Sum({&amp;lt;DocDate={'$(vTempID)'}&amp;gt;}LineTotal))$(vMarginSelect)"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance .,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 13:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887017#M1014358</guid>
      <dc:creator>sibideepak</dc:creator>
      <dc:date>2015-04-09T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: If statement doesn't return anything</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887018#M1014359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the if statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 13:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887018#M1014359</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-04-09T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: If statement doesn't return anything</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887019#M1014360</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;=If(GetFieldSelections(Margin%,'','','GroupA')='&amp;gt;30%','{"=$(vMargin2)&amp;gt;.30"}')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 13:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887019#M1014360</guid>
      <dc:creator>sibideepak</dc:creator>
      <dc:date>2015-04-09T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: If statement doesn't return anything</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887020#M1014362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well there are a lot of options here, but if I'm guessing....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Only({GroupA} Margin%) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;='&amp;gt;30%','{"=$(vMargin2)&amp;gt;.30"}')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Use Only because you are expecting only one value anyway&lt;/P&gt;&lt;P&gt;- Assuming GroupA is an alternate state (GetFieldSelections has only two arguments)&lt;/P&gt;&lt;P&gt;- Assuming there is one selected value in Margin% in the GroupA state&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887020#M1014362</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-04-09T14:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: If statement doesn't return anything</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887021#M1014363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GetFieldSelections does actually have 4 possible arguments, including the Field. The last one is the state..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P class="syntax"&gt;&lt;A name="kanchor283"&gt;&lt;/A&gt;&lt;A name="getfieldselections"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;getfieldselections (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; FieldName [, ValueSep [, MaxValues [, State]]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;
&lt;P&gt;Returns a string with the current selections in a field. It is possible to query an alternate state.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; is the separator to be put between field values. The default is ', '. &lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; is the maximum number of field values to be individually listed. When a larger number of values is selected the format 'x of y values' will be used instead. The default is 6. &lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Italic"&gt;State&lt;/SPAN&gt; is the alternate state to query.&lt;/P&gt;
&lt;P&gt;The string that is returned can be in these forms:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;TABLE style="margin-right: auto;"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;'x, y,z'&lt;/TD&gt;
&lt;TD&gt;If the number of selected values is &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; or less, the string returned is a list of the selected values, separated with &lt;SPAN class="Italic"&gt;Valuesep&lt;/SPAN&gt; as delimiter.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;'NOT x, y, z'&lt;/TD&gt;
&lt;TD&gt;If the number of non-selected values is &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; or less, the string returned is a list of the non-selected values, separated with &lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; as delimiter, and NOT as a prefix.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;'x of y'&lt;/TD&gt;
&lt;TD&gt;If the number of selected values ( x) is more than &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt;, but less than the total number of values (y) less &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;'ALL'&lt;/TD&gt;
&lt;TD&gt;If all values are selected.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;'-'&lt;/TD&gt;
&lt;TD&gt;If no value is selected.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;lt;search string&amp;gt;&lt;/TD&gt;
&lt;TD&gt;If you have selected using search, the search string is returned.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P class="example"&gt;Examples&lt;/P&gt;
&lt;P class="Code"&gt;getfieldselections ( Year ) &lt;/P&gt;
&lt;P class="Code"&gt;getfieldselections ( Year, '; ' ) &lt;/P&gt;
&lt;P class="Code"&gt;getfieldselections ( Year, '; ' , 10 ) &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887021#M1014363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T14:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: If statement doesn't return anything</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887022#M1014364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim Rørmark,&lt;/P&gt;&lt;P&gt;Getfieldselection isn't a problem here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887022#M1014364</guid>
      <dc:creator>sibideepak</dc:creator>
      <dc:date>2015-04-09T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: If statement doesn't return anything</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887023#M1014365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know, I just wanted to point out that GetFieldSelection actually accepts a state argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does your data look. Could you create some example-tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887023#M1014365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: If statement doesn't return anything</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887024#M1014366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, sorry.. this was added after the SR3 version I'm using&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887024#M1014366</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-04-09T14:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: If statement doesn't return anything</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887025#M1014367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's added in SR8 I think .,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-doesn-t-return-anything/m-p/887025#M1014367</guid>
      <dc:creator>sibideepak</dc:creator>
      <dc:date>2015-04-09T14:34:57Z</dc:date>
    </item>
  </channel>
</rss>

