<?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/1100762#M895012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam looking an expression for the front end and not at the script level.. secondly as said &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;invoice type 200 and 201 should be considered only when location is empty&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2016 09:26:06 GMT</pubDate>
    <dc:creator>raadwiptec</dc:creator>
    <dc:date>2016-08-12T09:26:06Z</dc:date>
    <item>
      <title>expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100757#M895007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to write and expression for the following below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following columns in my source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice type&lt;/P&gt;&lt;P&gt;Location&lt;/P&gt;&lt;P&gt;Price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need an expression for the following condition&lt;/P&gt;&lt;P&gt;invoice type should be 100,101,105,107,109,190 plus if location is null --invoice type should be 200 and 201 , then output should be Prices * -1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100757#M895007</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100758#M895008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Invoice type],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match([Invoice type],'100','101','105','107','109','190') or (Match([Invoice type],'200','201') and Len(Trim(Location))=0), -Price, Price) as Price&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...source...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 09:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100758#M895008</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-12T09:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100759#M895009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me in expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 09:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100759#M895009</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-08-12T09:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100760#M895010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and secondly invoice type 200 and 201 should be considered only when location is empty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 09:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100760#M895010</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-08-12T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100761#M895011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't like the expression I posted please explain what expression you want instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 09:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100761#M895011</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-12T09:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100762#M895012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam looking an expression for the front end and not at the script level.. secondly as said &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;invoice type 200 and 201 should be considered only when location is empty&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 09:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100762#M895012</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-08-12T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100763#M895013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I think you should fix this in the script, but the expressions works just as well in a chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 09:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100763#M895013</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-12T09:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100764#M895014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you provide me both?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 09:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100764#M895014</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-08-12T09:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100765#M895015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(Match([Invoice type],'100','101','105','107','109','190') or (Match([Invoice type],'200','201') and Len(Trim(Location))=0), -Price, Price)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 09:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100765#M895015</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-12T09:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100766#M895016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gybert this is not correct..&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;invoice type 200 and 201 should be considered only when location is empty and price should price * -1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 12:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100766#M895016</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-08-12T12:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100767#M895017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks correct to me. Point out the error please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 12:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100767#M895017</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-12T12:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100768#M895018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how is this condition getting fulfilled?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;invoice type 200 and 201 should be considered only when location is empty and output is price * -1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 12:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100768#M895018</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-08-12T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100769#M895019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to make sure we both understand boolean logic the same way perhaps you should Google for "boolean and operator" to find out what an &lt;EM&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/EM&gt; does between two conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 12:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100769#M895019</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-12T12:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100770#M895020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert's answer is correct according to my interpretation of your requirement.&amp;nbsp; However it can be tricky sometimes to read complex if statements when they are written on one line so I often break them up into separate lines to check they are constructed in the way that I want them to be.&amp;nbsp; So Gysbert's statement can be written as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;if(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;Match([Invoice type],'100','101','105','107','109','190')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;Match([Invoice type],'200','201') &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;and &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;Len(Trim(Location))=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;), &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;-1, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;) * Price&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: arial,helvetica,sans-serif;"&gt;You could write a more long winded version which you may or may find more understandable, but I would stick with Gysbert:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;if(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;Match([Invoice type],'100','101','105','107','109','190'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;-1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;if(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;Match([Invoice type],'200','201') &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;and &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;Len(Trim(Location))=0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;-1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: courier new,courier;"&gt;) * Price&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 13:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100770#M895020</guid>
      <dc:creator>r3iuk</dc:creator>
      <dc:date>2016-08-12T13:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/1100771#M895021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike .Gybs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed both looks same, other than the -1 and the -Price at the end.. &lt;/P&gt;&lt;P&gt;thanks both&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 13:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/1100771#M895021</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-08-16T13:49:00Z</dc:date>
    </item>
  </channel>
</rss>

