<?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 condition in mapping in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274727#M102678</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 think you could either use one mapping tabel, and combine e.g. Year and Activitiy as YearActivitiy to map, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapTableA:&lt;/P&gt;&lt;P&gt;Mapping LOAD * INLINE [&lt;/P&gt;&lt;P&gt;YearActivity, Future&lt;/P&gt;&lt;P&gt;2009A, 004&lt;/P&gt;&lt;P&gt;2010A, 003&lt;/P&gt;&lt;P&gt;2009B, 006&lt;/P&gt;&lt;P&gt;2010B, 006&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use applymap with a dynamical build YearActivity in the table you want to apply the mapping to,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use two mapping tables with distinct table name (MapTable2009, MapTable2010) and use a condition (if() / pick() ) to select the correct mapping table name for applymap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried nested applymaps as third idea (use a map to retrieve the mapping table name from given year), don't know if this works at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But first two ideas should work.&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>Tue, 20 Sep 2011 09:10:28 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-20T09:10:28Z</dc:date>
    <item>
      <title>condition in mapping</title>
      <link>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274726#M102677</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;I have a question&lt;/P&gt;&lt;P&gt;How can i do a condition on mapping&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;i have column called 'Year' in table nad i have column called 'Future' in another table&lt;/P&gt;&lt;P&gt;what i want is to make this mapping&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;LOAD * Inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Activity,Future&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;A,004&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;B,006&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;C,005&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;D,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;for Year=2009&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and to make this mapping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;LOAD * Inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Activity,Future&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;A,003&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;B,006&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;B,005&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;D,004&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;for Year=2010&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do that??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 08:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274726#M102677</guid>
      <dc:creator />
      <dc:date>2011-09-20T08:49:54Z</dc:date>
    </item>
    <item>
      <title>condition in mapping</title>
      <link>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274727#M102678</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 think you could either use one mapping tabel, and combine e.g. Year and Activitiy as YearActivitiy to map, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapTableA:&lt;/P&gt;&lt;P&gt;Mapping LOAD * INLINE [&lt;/P&gt;&lt;P&gt;YearActivity, Future&lt;/P&gt;&lt;P&gt;2009A, 004&lt;/P&gt;&lt;P&gt;2010A, 003&lt;/P&gt;&lt;P&gt;2009B, 006&lt;/P&gt;&lt;P&gt;2010B, 006&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use applymap with a dynamical build YearActivity in the table you want to apply the mapping to,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use two mapping tables with distinct table name (MapTable2009, MapTable2010) and use a condition (if() / pick() ) to select the correct mapping table name for applymap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried nested applymaps as third idea (use a map to retrieve the mapping table name from given year), don't know if this works at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But first two ideas should work.&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>Tue, 20 Sep 2011 09:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274727#M102678</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-20T09:10:28Z</dc:date>
    </item>
    <item>
      <title>condition in mapping</title>
      <link>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274728#M102679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan, &lt;/P&gt;&lt;P&gt;But how can i combine Year with Activity&lt;/P&gt;&lt;P&gt;Year is a field name in the table How can i combine it with the column i will name??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 09:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274728#M102679</guid>
      <dc:creator />
      <dc:date>2011-09-20T09:15:08Z</dc:date>
    </item>
    <item>
      <title>condition in mapping</title>
      <link>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274729#M102680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want when i select the year i want&lt;/P&gt;&lt;P&gt;the correct mapping to be applied&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 09:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274729#M102680</guid>
      <dc:creator />
      <dc:date>2011-09-20T09:16:30Z</dc:date>
    </item>
    <item>
      <title>condition in mapping</title>
      <link>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274730#M102681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So activity and future do only exist in your above two tables and you don't want a static mapping in the load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about a table like&lt;/P&gt;&lt;P&gt;LOAD * INLINE[&lt;/P&gt;&lt;P&gt;Year, Activity, Future&lt;/P&gt;&lt;P&gt;2009, A, 004&lt;/P&gt;&lt;P&gt;2010, A, 003&lt;/P&gt;&lt;P&gt;2009, B, 006&lt;/P&gt;&lt;P&gt;2010, B, 006&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should link your selected year to the appropriate Activity / Future combinations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well I think I misses your point, could you explain your data model and your business goal a bit more, please?&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>Tue, 20 Sep 2011 09:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274730#M102681</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-20T09:32:20Z</dc:date>
    </item>
    <item>
      <title>condition in mapping</title>
      <link>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274731#M102682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan &lt;/P&gt;&lt;P&gt;i didn't know if there was available to make 3 fields in mapping but now i did know &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, 21 Sep 2011 11:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-in-mapping/m-p/274731#M102682</guid>
      <dc:creator />
      <dc:date>2011-09-21T11:24:49Z</dc:date>
    </item>
  </channel>
</rss>

