<?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: Mapping?!?! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965630#M644305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, I have 4 loads of my invoice table, different data being added at different times, where should I place the load for the mapping? At the start?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if I'm being a pain!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Di&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2015 15:55:18 GMT</pubDate>
    <dc:creator>dinicholls</dc:creator>
    <dc:date>2015-12-07T15:55:18Z</dc:date>
    <item>
      <title>Mapping?!?!</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965627#M644302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables, Invoices and Disputes. I could joint these tables using 'Invoice Number', but I don't really need the disputes table, I just need to see in and invoice sits in the dispute table. In English, so to speak, this is the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Invoice.Invoice_Number = Dispute.Invoice_Number then 'Disputed' else 'Not 'Disputed'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this is QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I need to use mapping, but I just can't get my head round it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Di&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 15:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/965627#M644302</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2015-12-07T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping?!?!</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965628#M644303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP:&lt;/P&gt;&lt;P&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;Invoice_Number, 'Disputed' as F2&lt;/P&gt;&lt;P&gt;FROM Dispute;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoices:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoice_Number,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MAP', Invoice_Number, 'Not Disputed') as DisputeFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM Invoice;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2756"&gt;Don't join - use Applymap instead&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 15:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/965628#M644303</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-07T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping?!?!</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965629#M644304</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;So ideally I need to load my disputes first, then my invoices table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where does 'F2' come into it?&amp;nbsp; Is that what you have just called it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I obviously want the answer, but I also want to understand why its done that way so I can apply it to other apps when needed!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 15:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/965629#M644304</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2015-12-07T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping?!?!</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965630#M644305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, I have 4 loads of my invoice table, different data being added at different times, where should I place the load for the mapping? At the start?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if I'm being a pain!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Di&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 15:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/965630#M644305</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2015-12-07T15:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping?!?!</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965631#M644306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table for the mapping load 'MAP' needs to be loaded be for it can be used in ApplyMap() function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a temporary table (not existing in the data model after the script executed), and must hold exactely two fields.&lt;/P&gt;&lt;P&gt;The name of the fields does not matter, so I just called the second F2 (field 2). The first field is used for the mapping lookup, the second field is used to retrieve the result of the mapping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 15:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/965631#M644306</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-07T15:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping?!?!</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965632#M644307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the sample QVW file with script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 15:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/965632#M644307</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-12-07T15:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping?!?!</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965633#M644308</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;By golly I think I've got it, but................................Why does it come through as an expression, and not a dimension, which I really need it to be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way it could become an dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, by the way, your a star!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Di&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 16:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/965633#M644308</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2015-12-07T16:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping?!?!</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965634#M644309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean with 'it comes through as an expression'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load script should just create a new field 'DisputeFlag' with two possible values 'Disputed' and 'Not Disputed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to use this field as a dimension without any problems (or within an expression when using an appropriate aggregation, like (Count(DisputeFlag) ).&lt;/P&gt;&lt;P&gt;There should be no difference to all your other fields in your data model with regard to how you can use the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which software are you using Qlik Sense or QlikView?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 17:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/965634#M644309</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-07T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping?!?!</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/965635#M644310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for helping me out.&lt;/P&gt;&lt;P&gt;I actually went with 'Exisits' in the end, but have learnt a lot from your replies, and can now use Mapping!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Di&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 11:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/965635#M644310</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2015-12-09T11:08:38Z</dc:date>
    </item>
  </channel>
</rss>

