<?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: sql to expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341073#M413110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( not IsNull (lastname) or not IsNull&amp;nbsp; ( firstname ) , &lt;/P&gt;&lt;P&gt;IsNull (lastname) &amp;amp; IsNull (firstname) , namemodify)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or share some sample data with expected output. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2017 07:48:00 GMT</pubDate>
    <dc:creator>prma7799</dc:creator>
    <dc:date>2017-07-20T07:48:00Z</dc:date>
    <item>
      <title>sql to expression</title>
      <link>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341072#M413109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(CASE WHEN ((table1.lastname IS NOT NULL) OR (table1.firstname IS NOT NULL)) THEN ISNULL(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;lastname &lt;/SPAN&gt;,' ') + ', ' +&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ISNULL(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;firstname &lt;/SPAN&gt;,' ') ELSE table2.namemodify by END) AS modifiedname,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;how to do this in expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 07:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341072#M413109</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2017-07-20T07:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: sql to expression</title>
      <link>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341073#M413110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( not IsNull (lastname) or not IsNull&amp;nbsp; ( firstname ) , &lt;/P&gt;&lt;P&gt;IsNull (lastname) &amp;amp; IsNull (firstname) , namemodify)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or share some sample data with expected output. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 07:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341073#M413110</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-07-20T07:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: sql to expression</title>
      <link>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341074#M413111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PM "not isnull" function is not in qlikview and then pls see the condition in the sql query we have space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; THEN ISNULL(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;lastname &lt;/SPAN&gt;,' ') + ', ' +&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ISNULL(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;firstname &lt;/SPAN&gt;,' ')&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;after &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;lastname and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;firstname&lt;/SPAN&gt; &lt;/SPAN&gt; see the comma and space in the single quotes ' '&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 07:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341074#M413111</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2017-07-20T07:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: sql to expression</title>
      <link>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341075#M413112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Manoranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;If(IsNull(table1.lastname)=0,Concat(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;lastname&amp;amp;' '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;firstname&lt;/SPAN&gt;),if(IsNull(table1.firstname)=0,Concat(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;lastname&amp;amp;' '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;firstname&lt;/SPAN&gt;),table2.namemodify))&lt;/P&gt;&lt;P&gt;as modifiedname,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where in place of table1.lastname,table1.firstname,table2.namemodify put the corresponding variable name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression will check whether table1.last name is not null and if yes give the value table1.lastname along with &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;firstname.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Then it will check whether &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;firstname is not null and if yes will give the value table1.lastname along with &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;table1&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;firstname.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;If both of them is null will return the value table2.namemodify&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 07:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341075#M413112</guid>
      <dc:creator />
      <dc:date>2017-07-20T07:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: sql to expression</title>
      <link>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341076#M413113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;EM&gt;if( len(trim(lastname))&amp;gt;0&amp;nbsp; or len(trim(firstname ))&amp;gt;0 ,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;len(trim(lastname))=0,' ',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;lastname) &amp;amp; ','&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;STRONG&gt;len(trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;firstname&lt;/SPAN&gt;))=0,' ',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;firstname&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;STRONG&gt;) ,&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;EM&gt;namemodify)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 09:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341076#M413113</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-07-20T09:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: sql to expression</title>
      <link>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341077#M413114</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;Here's another suggestion;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(len(trim(firstname))+ len(trim(lastname)) = 0, namemodify,&lt;/P&gt;&lt;P&gt;lastname &amp;amp; if(len(trim(firstname)) *len(trim(lastname)) &amp;gt;0,', ') &amp;amp; firstname)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will only return a sting with a comma if firstname and lastname are both non-null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 09:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-to-expression/m-p/1341077#M413114</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-20T09:31:54Z</dc:date>
    </item>
  </channel>
</rss>

