<?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: Question about mapping in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322881#M118943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've fixed this up for you and offered an alternative using ApplyMap() - just comment out the top part of the script and uncomment the second part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Sep 2011 13:20:48 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2011-09-04T13:20:48Z</dc:date>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322880#M118942</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;Please i have a question about mapping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have field called Activity&lt;/P&gt;&lt;P&gt;which has the values of 1,2,3,4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to represent them with names A,B,C,D&lt;/P&gt;&lt;P&gt;so i made mapping &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Activity , Name&lt;/P&gt;&lt;P&gt;1,A&lt;/P&gt;&lt;P&gt;2,B&lt;/P&gt;&lt;P&gt;3,C&lt;/P&gt;&lt;P&gt;4,D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i select Name it reflects to the Activity&lt;/P&gt;&lt;P&gt;but when i used the Activity in the expression it doesn't reflect anything&lt;/P&gt;&lt;P&gt;hope the attached example clarify the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 13:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322880#M118942</guid>
      <dc:creator />
      <dc:date>2011-09-04T13:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322881#M118943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've fixed this up for you and offered an alternative using ApplyMap() - just comment out the top part of the script and uncomment the second part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 13:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322881#M118943</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-04T13:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322882#M118944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mona_qlik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to keep the tables not linked, you could just remove the second load from the script and change your expression in the table to &lt;/P&gt;&lt;P&gt;=sum(if(Activity=NewActivity,Value))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Activity,Value&lt;/P&gt;&lt;P&gt;1,200&lt;/P&gt;&lt;P&gt;1,400&lt;/P&gt;&lt;P&gt;1,300&lt;/P&gt;&lt;P&gt;2,50&lt;/P&gt;&lt;P&gt;2,300&lt;/P&gt;&lt;P&gt;3,340&lt;/P&gt;&lt;P&gt;3,690&lt;/P&gt;&lt;P&gt;4,300&lt;/P&gt;&lt;P&gt;4,90&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//LOAD Activity as ActivityNew&lt;/P&gt;&lt;P&gt;//Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;ActivityNew,Name&lt;/P&gt;&lt;P&gt;1,A&lt;/P&gt;&lt;P&gt;2,B&lt;/P&gt;&lt;P&gt;3,C&lt;/P&gt;&lt;P&gt;4,D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Or use a mapping load with your second table and applymap in your first (you need to change the order of your tables though)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.P.S: I would prefer Jasons second solution (essentially what I meant with my first P.S., just saw his after comitting my post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edited by swuehl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 13:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322882#M118944</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-04T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322883#M118945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Jason for your help&lt;/P&gt;&lt;P&gt;but in my case as i attached iun the document i have to create another field resident the first one but this not working in the expression&lt;/P&gt;&lt;P&gt;i.e the field that's not reflected is the ActivityNew not the Activity&lt;/P&gt;&lt;P&gt;Hope the problem now is clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 13:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322883#M118945</guid>
      <dc:creator />
      <dc:date>2011-09-04T13:40:29Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322884#M118946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Mona but I don't really understand what you're trying to achieve.&amp;nbsp; Are you saying you want 2 fields with exactly the same values in them, one called Activity and one called ActivityNew?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 13:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322884#M118946</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-04T13:48:24Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322885#M118947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also don't really get what you want Mona.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to keep your data model (maybe because we dont't understand your whole picture), you could use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Activity={'$(=only(ActivityNew))'}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your table to get your / some / any results (because I ... see above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 13:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322885#M118947</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-04T13:53:39Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322886#M118948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Stefan and Jason&lt;/P&gt;&lt;P&gt;i know that my problem is complicated so above i attached a simplified example but not the real case so you can't understand what i want to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the last expression Stefan has posted is working in the case that (A) For example is reflected to (1)&lt;/P&gt;&lt;P&gt;which is &lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Activity={'$(=only(ActivityNew))'}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what if the mapping for Name (A) is related with 2 activities (1 and 2 for example)&lt;/P&gt;&lt;P&gt;and i want the above expression to work with them??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 14:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322886#M118948</guid>
      <dc:creator />
      <dc:date>2011-09-04T14:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322887#M118949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you correctly (and I'm afraid I'm still not sure I do!) then both my solutions would still work in this case.&amp;nbsp; Just add the second mapping to the Map table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Activity_Map:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Activity,Name&lt;/P&gt;&lt;P&gt;1,A&lt;/P&gt;&lt;P&gt;2,B&lt;/P&gt;&lt;P&gt;3,C&lt;/P&gt;&lt;P&gt;4,D&lt;/P&gt;&lt;P&gt;5,A&lt;/P&gt;&lt;P&gt;6,A&lt;/P&gt;&lt;P&gt;7,A&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 14:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322887#M118949</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-04T14:28:02Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322888#M118950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also I am just guessing:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Activity={'$(=concat(ActivityNew,chr(39)&amp;amp;','&amp;amp;chr(39)))'}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;allows to assign multiple ActivityNew values to be assigned to Activity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 14:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322888#M118950</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-04T14:30:49Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322889#M118951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes Jason i did it&lt;/P&gt;&lt;P&gt;but now i want an equal expression to the one Stefan posted&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Activity={'$(=only(ActivityNew))'}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;to be used in the case of 2 Activities has the same name&lt;/P&gt;&lt;P&gt;is that clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 14:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322889#M118951</guid>
      <dc:creator />
      <dc:date>2011-09-04T14:36:20Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322890#M118952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Mona - if you'd like to expand on what you are trying to achieve and why you're taking the approach you are then maybe we can help more.&amp;nbsp; I'm afraid I really don't understand what you're trying to do.&amp;nbsp; Does Stefan's expression above do it for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 14:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322890#M118952</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-04T14:38:56Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322891#M118953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alot Stefan&lt;/P&gt;&lt;P&gt;it's working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;but if u please explain what's meant by ch(39) as i can't undersatnd your expression&lt;/P&gt;&lt;P&gt;but it's working correctly,just i need to understand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 14:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322891#M118953</guid>
      <dc:creator />
      <dc:date>2011-09-04T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322892#M118954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression &lt;/P&gt;&lt;P&gt;'$(=concat(ActivityNew,chr(39)&amp;amp;','&amp;amp;chr(39)))'&lt;/P&gt;&lt;P&gt;will create a list of the comma separated ActivityNew values, each in quotes (chr(39) is calling the function to return ' with given ASCII code 39 for ' ). The list will then be taken as element_set by the set analysis expression, assigning the values to the field Activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noted also that adding a DISTINCT before ActivitiyNew might be a bit more elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: In cases like that, it might be good to spend a few words on your "big picture", this may allow to disregard some solutions upfront and may save some time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 14:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322892#M118954</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-04T14:58:58Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322893#M118955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicely done Stefan &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mona - please make sure you credit Stefan for the answer by marking it as "correct".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 15:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322893#M118955</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-04T15:31:50Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322894#M118956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add a note: I just found a much easier solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Activity= p(ActivityNew) &amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 14:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322894#M118956</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-05T14:46:28Z</dc:date>
    </item>
    <item>
      <title>Question about mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322895#M118957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Stefan and Jason&lt;/P&gt;&lt;P&gt;i will try your second solution Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Mona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 10:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-mapping/m-p/322895#M118957</guid>
      <dc:creator />
      <dc:date>2011-09-06T10:22:55Z</dc:date>
    </item>
  </channel>
</rss>

