<?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 a value ends with a certain two figures in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998119#M647401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;If (right (yourfield,2)=81,'Type A','Type B') as [Product Type]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Oct 2015 03:06:33 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2015-10-31T03:06:33Z</dc:date>
    <item>
      <title>If a value ends with a certain two figures</title>
      <link>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998117#M647399</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;I am new to Qlikview. I have a list or order numbers. The orders that end in an 81 are those that belong to a specific product type (type a)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;45615&lt;/P&gt;&lt;P&gt;123&lt;/P&gt;&lt;P&gt;7894&lt;/P&gt;&lt;P&gt;581&lt;/P&gt;&lt;P&gt;44781&lt;/P&gt;&lt;P&gt;75984&lt;/P&gt;&lt;P&gt;4581&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use an IF function to return those order numbers that end in 81 to be highlighted as 'type a' and the others as 'type b'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 10:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998117#M647399</guid>
      <dc:creator />
      <dc:date>2015-10-30T10:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: If a value ends with a certain two figures</title>
      <link>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998118#M647400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be done in the load script. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Order, Product&lt;/P&gt;&lt;P&gt;1,101&lt;/P&gt;&lt;P&gt;2,102&lt;/P&gt;&lt;P&gt;3,181&lt;/P&gt;&lt;P&gt;4,282&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OrdersWithFlag:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;If (Right (Product,2)='81','Type A','Type B') as IsTypeAProduct&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table OrdersWithFlag will contain both the original product an indicator for product type (which here I've called IsTypeAProduct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading the flag in the script may be the easiest in that it creates a flag that you can reference all throughout your document without having to rewrite the formula each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also add the above formula, for example, as an expression in a straight table chart (sans 'as IsTypeAProduct'), and it'll work. This may be the better solution if you don't want to mess with the script or only need the indicator in one or two place. The straight table will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="20151030_1.GIF" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103642_20151030_1.GIF" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 01:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998118#M647400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-31T01:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: If a value ends with a certain two figures</title>
      <link>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998119#M647401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;If (right (yourfield,2)=81,'Type A','Type B') as [Product Type]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 03:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998119#M647401</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-10-31T03:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: If a value ends with a certain two figures</title>
      <link>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998120#M647402</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;Another option could be using match() and wildmatch()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(wildmatch(fieldName,'*81'),'Type A','Type B') as Product_Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 03:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998120#M647402</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-10-31T03:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: If a value ends with a certain two figures</title>
      <link>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998121#M647403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a field in script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if(FieldName like '*81','Type a','Type b') as Product _Type&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 06:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-a-value-ends-with-a-certain-two-figures/m-p/998121#M647403</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-10-31T06:20:33Z</dc:date>
    </item>
  </channel>
</rss>

