<?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 convert this SQL to qlikview expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082346#M360571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;if(System1FinishDate &amp;gt; now() OR &lt;SPAN style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;System&lt;/SPAN&gt;0FinishDate &amp;gt; now(), 3,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;if(len(trim(Software_FinalDate))=0,2,1)) as NewField&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 06:09:19 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-03-29T06:09:19Z</dc:date>
    <item>
      <title>How to convert this SQL to qlikview expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082341#M360566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am finding it hard time to understand this SQL server report builder expression and convert it to qlikview expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IIF(Fields!System1FinishDate.Value &amp;gt; Now Or Fields!&lt;SPAN style="font-size: 13.3333px;"&gt;System&lt;/SPAN&gt;0FinishDate.Value &amp;gt; Now, 3,&lt;/P&gt;&lt;P&gt; IIF(isNothing(Fields!Software_FinalDate.Value),2,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone here understand this? or any site that can help me convert this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 05:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082341#M360566</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-03-29T05:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this SQL to qlikview expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082342#M360567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Fields!System1FinishDate.Value is larger that the current time or the value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Fields!&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;System&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;0FinishDate.Value is larger than the current time the result is 3, but otherwise if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Fields!Software_FinalDate.Value has no value then the result is 2. In all other cases the result is 1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Qlik equivalent is:&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Fields!System1FinishDate.Value &amp;gt; Now() or,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Fields!&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;System&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;0FinishDate.Value &amp;gt; Now(), 3,if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; IsNull(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Fields!&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;System&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;0FinishDate.Value),2,1 &lt;/SPAN&gt;) )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 05:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082342#M360567</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-29T05:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this SQL to qlikview expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082343#M360568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi Jim,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Try,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;=IF(FieldName1 &amp;gt; Now() &lt;SPAN style="line-height: 1.5em;"&gt;Or &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FieldName2 &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;gt; Now () , 3,&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Len(Trim(&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FieldName3 &lt;/EM&gt;))=0 , 2,1 )&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Change the field names accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082343#M360568</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-03-29T06:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this SQL to qlikview expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082344#M360569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not 100% sure but I think something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(System1FinishDate &amp;gt; now() OR &lt;SPAN style="font-size: 13.3333px;"&gt;System&lt;/SPAN&gt;0FinishDate &amp;gt; now(), 3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(IsNull(Software_FinalDate),2,1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ) as Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082344#M360569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T06:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this SQL to qlikview expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082345#M360570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you teacher! very well said! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082345#M360570</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-03-29T06:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this SQL to qlikview expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082346#M360571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;if(System1FinishDate &amp;gt; now() OR &lt;SPAN style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;System&lt;/SPAN&gt;0FinishDate &amp;gt; now(), 3,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;if(len(trim(Software_FinalDate))=0,2,1)) as NewField&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082346#M360571</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-29T06:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this SQL to qlikview expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082347#M360572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tamil!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is you again bro! well yeah, i tried your advise as well. worked well so far! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you let me know.. why for the last field3 - have to use if(len(trim) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082347#M360572</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-03-29T06:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this SQL to qlikview expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082348#M360573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi Jim,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I have used Len(Trim()) to capture empty spaces as well. Isnull() function returns 0 (False) for blank spaces but &lt;EM style="font-size: 13.3333px;"&gt;Len(Trim(FieldName)) will return 0&lt;/EM&gt;. Below link might be helpful.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/100639"&gt;IsNull(MyField) vs. Len(MyField) = 0&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082348#M360573</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-03-29T06:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this SQL to qlikview expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082349#M360574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks my friend!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-this-SQL-to-qlikview-expression/m-p/1082349#M360574</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-03-29T06:34:27Z</dc:date>
    </item>
  </channel>
</rss>

