<?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: expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression/m-p/1094881#M363757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(SubField(Column1, '-', 2) = 1, 1, 0) as Output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Column1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;asdf1234-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dfgf2345-11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gdd4567cc-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ghj4563ccc-12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aser8762-213&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG __jive_id="121247" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121247_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2016 16:34:49 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-11T16:34:49Z</dc:date>
    <item>
      <title>expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1094880#M363756</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;need assistance on this scenario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column1:&lt;/P&gt;&lt;P&gt;asdf1234-1&lt;/P&gt;&lt;P&gt;dfgf2345-11&lt;/P&gt;&lt;P&gt;gdd4567cc-1&lt;/P&gt;&lt;P&gt;ghj4563ccc-12&lt;/P&gt;&lt;P&gt;aser8762-213&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expected output:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Column1,OutPut&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;asdf1234-1,1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;dfgf2345-11,0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;gdd4567cc-1,1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ghj4563ccc-12,0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;aser8762-213,0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Note for output: If we have only "1" after "-" display as 1 else 0.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I tried with mid(),not success-ed completely.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 15:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1094880#M363756</guid>
      <dc:creator />
      <dc:date>2016-04-11T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1094881#M363757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(SubField(Column1, '-', 2) = 1, 1, 0) as Output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Column1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;asdf1234-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dfgf2345-11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gdd4567cc-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ghj4563ccc-12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aser8762-213&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG __jive_id="121247" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121247_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1094881#M363757</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-11T16:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1094882#M363758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; if( right(&lt;SPAN style="font-size: 13.3333px;"&gt;Column1,2)='-1',1,0) as Output&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Column1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;asdf1234-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dfgf2345-11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gdd4567cc-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ghj4563ccc-12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aser8762-213&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121250_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1094882#M363758</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-11T16:37:54Z</dc:date>
    </item>
  </channel>
</rss>

