<?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: script function to compare two fields and show values existing in one but not in the other in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-function-to-compare-two-fields-and-show-values-existing/m-p/116126#M17850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct about the model. Its a table with fields &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Ori.ItemID, Ori.ShopID, Replace.ItemID and Replace.ShopID, among others, but these are the ones I´m interested in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I attached the file now. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Attachement is only a JPG file showing an example.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt; In this example, the original Item was sold to 6 shops, and replacement is being sold to 4, so there´s 2 shops where new Item is not being sold to and this is the kind of scenarios I need to identify and report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2018 14:53:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-23T14:53:20Z</dc:date>
    <item>
      <title>script function to compare two fields and show values existing in one but not in the other</title>
      <link>https://community.qlik.com/t5/QlikView/script-function-to-compare-two-fields-and-show-values-existing/m-p/116124#M17848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a script function that allows me to compare two fields and show the values existing in one field but not in the other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the situation:&lt;/P&gt;&lt;P&gt;An Item is been sold to specific shops.&lt;/P&gt;&lt;P&gt;This item, lets call it &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;'Original' item&lt;/SPAN&gt;,&lt;/SPAN&gt; can be replaced for another item, &lt;SPAN style="font-size: 13.3333px;"&gt;a &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'Replacement' item&lt;/SPAN&gt; (with a new Item code). &lt;BR /&gt;In the database it´s two different item codes, and this replacement item is sold to specific shops as well.&lt;/P&gt;&lt;P&gt;In theory, as one Item code is replacing the other, this replacement should be sold to (at least) the same shops as the original one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The fields are: Ori.ItemID, Ori.ShopID, Replace.ItemID and Replace.ShopID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Joins are working correctly and when I select an original Item I can see the Shops where it was sold to, the new code replacing it and the shops where the replacement Item is been sold to.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What I need, is to compare the fields Original Shops and Replacement Shops so I can Identify when a Replacement Item is not being sold to shops where old item was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I made myself clear but if further information is needed, please let me know.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-function-to-compare-two-fields-and-show-values-existing/m-p/116124#M17848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-23T14:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: script function to compare two fields and show values existing in one but not in the other</title>
      <link>https://community.qlik.com/t5/QlikView/script-function-to-compare-two-fields-and-show-values-existing/m-p/116125#M17849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there's nothing attached !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is your model,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have a table with : ItemID ans ShopID ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-function-to-compare-two-fields-and-show-values-existing/m-p/116125#M17849</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-07-23T14:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: script function to compare two fields and show values existing in one but not in the other</title>
      <link>https://community.qlik.com/t5/QlikView/script-function-to-compare-two-fields-and-show-values-existing/m-p/116126#M17850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct about the model. Its a table with fields &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Ori.ItemID, Ori.ShopID, Replace.ItemID and Replace.ShopID, among others, but these are the ones I´m interested in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I attached the file now. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Attachement is only a JPG file showing an example.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt; In this example, the original Item was sold to 6 shops, and replacement is being sold to 4, so there´s 2 shops where new Item is not being sold to and this is the kind of scenarios I need to identify and report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-function-to-compare-two-fields-and-show-values-existing/m-p/116126#M17850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-23T14:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: script function to compare two fields and show values existing in one but not in the other</title>
      <link>https://community.qlik.com/t5/QlikView/script-function-to-compare-two-fields-and-show-values-existing/m-p/116127#M17851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like below in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM yourOriginalItemTableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replacement:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;SPAN style="font-size: 13.3333px;"&gt;IF(Exists(ShopCode), 'ItemsSold', 'ItemsNotSold') AS SoldFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM yourReplacementTableName; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 15:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-function-to-compare-two-fields-and-show-values-existing/m-p/116127#M17851</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-07-23T15:08:30Z</dc:date>
    </item>
  </channel>
</rss>

