<?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: Fix Format for If Then Else in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fix-Format-for-If-Then-Else/m-p/1719705#M723420</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45214"&gt;@gfisch13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be &lt;SPAN class="Code"&gt;wildmatch&lt;/SPAN&gt; instead of Match&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:
load *,if(wildmatch(Field, 'SHARE:*'), 'MET Location', 'Other Location') as ShipToLocation inline [
Field
SHARE:blabla
blabla
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 704px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35731iB5A165AB0FCBE6A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 14:50:06 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-06-17T14:50:06Z</dc:date>
    <item>
      <title>Fix Format for If Then Else</title>
      <link>https://community.qlik.com/t5/QlikView/Fix-Format-for-If-Then-Else/m-p/1719701#M723419</link>
      <description>&lt;P&gt;Good Morning - I've created the following If/Then/Else statement in a script to use as a field in a list box, but it is not functioning exactly as I thought.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;My field: ([PO]Ship To Location (Location ID)) has values that start with 'SHARE:' and those that do not.&amp;nbsp; &amp;nbsp;When the value is 'SHARE:' I want the value to be 'Met Location' and all other values to be 'Other Location'.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not understanding what I'm doing wrong with the following script line.&amp;nbsp; The only value that is showing up is 'Other Location' at this point&lt;/P&gt;&lt;P&gt;if(MATCH("[PO]Ship To Location (Location ID)", 'SHARE:'), 'MET Location', 'OtherLocation') as ShipToLocation,&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fix-Format-for-If-Then-Else/m-p/1719701#M723419</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2024-11-16T00:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fix Format for If Then Else</title>
      <link>https://community.qlik.com/t5/QlikView/Fix-Format-for-If-Then-Else/m-p/1719705#M723420</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45214"&gt;@gfisch13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be &lt;SPAN class="Code"&gt;wildmatch&lt;/SPAN&gt; instead of Match&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:
load *,if(wildmatch(Field, 'SHARE:*'), 'MET Location', 'Other Location') as ShipToLocation inline [
Field
SHARE:blabla
blabla
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 704px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35731iB5A165AB0FCBE6A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 14:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fix-Format-for-If-Then-Else/m-p/1719705#M723420</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-17T14:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fix Format for If Then Else</title>
      <link>https://community.qlik.com/t5/QlikView/Fix-Format-for-If-Then-Else/m-p/1719711#M723421</link>
      <description>&lt;P&gt;Taoufiq - this is great, thank you for your input.&amp;nbsp; &amp;nbsp;Was using MATCH more limiting than the WILDMATCH?&amp;nbsp; I just want to understand since it seems that our expressions are virtually the same.&lt;/P&gt;&lt;P&gt;Appreciate your time!!!&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 15:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fix-Format-for-If-Then-Else/m-p/1719711#M723421</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2020-06-17T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fix Format for If Then Else</title>
      <link>https://community.qlik.com/t5/QlikView/Fix-Format-for-If-Then-Else/m-p/1719715#M723422</link>
      <description>&lt;P&gt;with pleasure George,&lt;/P&gt;&lt;P&gt;the trick is that with WILDMATCH you can use '*' at the end to compare the values starting with 'SHARE:.....' which is your case otherwise Match will work very well if you compare with 'SHARE:'&amp;nbsp; i.e. the exact word&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 15:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fix-Format-for-If-Then-Else/m-p/1719715#M723422</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-17T15:16:31Z</dc:date>
    </item>
  </channel>
</rss>

