<?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 condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877083#M72292</link>
    <description>&lt;P&gt;If(Len(trim("T$BOLA")) = 0 and companycode&amp;gt;300,1,0) as [Bola_Flag]&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jan 2022 15:12:48 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2022-01-04T15:12:48Z</dc:date>
    <item>
      <title>If condition</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877076#M72291</link>
      <description>&lt;P&gt;I have 2 fields &lt;STRONG&gt;[Company_Code]&lt;/STRONG&gt; and &lt;STRONG&gt;[BOLA].&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I have to create a flag based on the below condition -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If [Company_Code]&amp;gt;300 and [BOLA] should not be blank then 0 else 1.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I wrote this but I don't know how to add the companycode&amp;gt;300 condition.&lt;/P&gt;
&lt;P&gt;If(Len(trim("T$BOLA")) = 0,1,0) as [Bola_Flag]&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 15:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877076#M72291</guid>
      <dc:creator>risabhroy_03</dc:creator>
      <dc:date>2022-01-04T15:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877083#M72292</link>
      <description>&lt;P&gt;If(Len(trim("T$BOLA")) = 0 and companycode&amp;gt;300,1,0) as [Bola_Flag]&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 15:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877083#M72292</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-01-04T15:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877094#M72294</link>
      <description>&lt;P&gt;It doesn't works&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 15:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877094#M72294</guid>
      <dc:creator>risabhroy_03</dc:creator>
      <dc:date>2022-01-04T15:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877098#M72295</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="risabhroy_03_0-1641310411792.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69550i724DE28147D882E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="risabhroy_03_0-1641310411792.png" alt="risabhroy_03_0-1641310411792.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My BOLA is blank and company_Code&amp;gt;300 it should show as 1 only.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 15:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877098#M72295</guid>
      <dc:creator>risabhroy_03</dc:creator>
      <dc:date>2022-01-04T15:34:30Z</dc:date>
    </item>
    <item>
      <title>If condition issue</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877119#M72305</link>
      <description>&lt;P&gt;I have 2 fields&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;[Company_Code]&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;[BOLA].&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I have to create a flag based on the below condition -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If [Company_Code]&amp;gt;300 and [BOLA] should not be blank then 0 else 1.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I wrote this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(Company_Code&amp;gt;300, If(Len(trim("T$BOLA"))= 0,1,0)&lt;BR /&gt;,0) as [Bola_Flag]&lt;/P&gt;
&lt;P&gt;but not working as expected&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 16:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877119#M72305</guid>
      <dc:creator>risabhroy_03</dc:creator>
      <dc:date>2022-01-04T16:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877129#M72299</link>
      <description>&lt;P&gt;That's a dimension. You should be using a measure (or creating your flag in your script).&lt;/P&gt;
&lt;P&gt;If you created it in your script, it should work correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 17:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877129#M72299</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-01-04T17:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877131#M72301</link>
      <description>&lt;P&gt;Didn’t get you&lt;/P&gt;
&lt;P&gt;Can you plz explain&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 16:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877131#M72301</guid>
      <dc:creator>risabhroy_03</dc:creator>
      <dc:date>2022-01-04T16:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877138#M72302</link>
      <description>&lt;P&gt;The code works. If it's not working for you, either your data isn't what you think it is, or you're trying to do this using a calculated dimension.&lt;/P&gt;
&lt;P&gt;Load *, if(Company_Code &amp;gt; 300 AND Len(trim("T$BOLA")) = 0,1,0) as Bola_Flag INLINE [&lt;BR /&gt;Company_Code, T$BOLA&lt;BR /&gt;310,&lt;BR /&gt;315,&lt;BR /&gt;320,&lt;BR /&gt;330,&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Or_0-1641314719894.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69557i9C28630CA1FD911C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Or_0-1641314719894.png" alt="Or_0-1641314719894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Since you're getting two rows for each company code, there may be an issue with your data structure or you may have created the Bola_Flag field outside the context of the table which contains the actual value. &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 17:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877138#M72302</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-01-04T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877148#M72306</link>
      <description>&lt;P&gt;What did you get instead?&lt;/P&gt;
&lt;P&gt;Given which values of&amp;nbsp;&lt;SPAN&gt;Company_Code and&amp;nbsp;BOLA?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is "T$BOLA" supposed to be the same as&amp;nbsp;BOLA?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 17:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition/m-p/1877148#M72306</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-01-04T17:05:45Z</dc:date>
    </item>
  </channel>
</rss>

