<?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: Stacked bar and Joining two tables causing duplicates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stacked-bar-and-Joining-two-tables-causing-duplicates/m-p/1376288#M811288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari, you can use ApplyMap to avoid duplicates, first you create the applymap (a LOAD with a'Mapping' prefix):&lt;/P&gt;&lt;P&gt;mapRate:&lt;/P&gt;&lt;P&gt;Mapping LOAD Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rate%&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Second, use this map in ApplyMap function, it searchs the value in the first field of the map and retuns the second field value. Also has an optional 3rd parameter to set a value when the value is not found (by default if the value is not found in map it returns the searched value:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('mapRate', Customer, &lt;EM&gt;Null()&lt;/EM&gt;) as Rate%&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping tables dissapears when the load has finished, so it doesn't have any impact on data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/MappingFunctions/ApplyMap.htm" title="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/MappingFunctions/ApplyMap.htm"&gt;https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Oct 2017 18:17:59 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2017-10-01T18:17:59Z</dc:date>
    <item>
      <title>Stacked bar and Joining two tables causing duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-and-Joining-two-tables-causing-duplicates/m-p/1376287#M811287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikview gurus,&lt;/P&gt;&lt;P&gt;My issue here is &lt;/P&gt;&lt;P&gt;I have two tables in excel as attached-&amp;nbsp; i want to join these two tables and create new without causing duplicates.&lt;/P&gt;&lt;P&gt;Once two tables have been joined, i need to create stacked bar chart and line&amp;nbsp; with that new table.&lt;/P&gt;&lt;P&gt;I have attached a qlikview workbook where I have created stacked bar chart and line chart(made it transparent) so that i can have both the charts in one place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution on how to combine two tables into one&amp;nbsp; table and end up having a stacked bar chart and line chart as attached in the qlikview workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note: this is sample data.I have n number of customers and n number of products-so set analysis is ruled out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-and-Joining-two-tables-causing-duplicates/m-p/1376287#M811287</guid>
      <dc:creator>haribabugv</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar and Joining two tables causing duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-and-Joining-two-tables-causing-duplicates/m-p/1376288#M811288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari, you can use ApplyMap to avoid duplicates, first you create the applymap (a LOAD with a'Mapping' prefix):&lt;/P&gt;&lt;P&gt;mapRate:&lt;/P&gt;&lt;P&gt;Mapping LOAD Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rate%&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Second, use this map in ApplyMap function, it searchs the value in the first field of the map and retuns the second field value. Also has an optional 3rd parameter to set a value when the value is not found (by default if the value is not found in map it returns the searched value:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('mapRate', Customer, &lt;EM&gt;Null()&lt;/EM&gt;) as Rate%&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping tables dissapears when the load has finished, so it doesn't have any impact on data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/MappingFunctions/ApplyMap.htm" title="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/MappingFunctions/ApplyMap.htm"&gt;https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 18:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-and-Joining-two-tables-causing-duplicates/m-p/1376288#M811288</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-10-01T18:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar and Joining two tables causing duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-and-Joining-two-tables-causing-duplicates/m-p/1376289#M811290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ruben.&lt;/P&gt;&lt;P&gt;I am now able to avoid duplicates.&lt;/P&gt;&lt;P&gt;How can we use stacked bar and line chart for the attached qlikview workbook?&lt;/P&gt;&lt;P&gt;'Product' dimension in the this chart should be shown as stacked bar and x axis should be customer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 19:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-and-Joining-two-tables-causing-duplicates/m-p/1376289#M811290</guid>
      <dc:creator>haribabugv</dc:creator>
      <dc:date>2017-10-01T19:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar and Joining two tables causing duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-and-Joining-two-tables-causing-duplicates/m-p/1376290#M811291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't how to avoid the use of transparent&amp;nbsp; chart in this case, If there was only one dimension, or if this dimension has a limited set of values you could add a bar for each dimension value, this way stacked bars can be mixed with lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this data, both 'Customer' and 'Product' will have many different values to try this approach, I attach a sample so you can check (as I said, I don't think you can use this with real data- there will be many diffrent products)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 07:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-and-Joining-two-tables-causing-duplicates/m-p/1376290#M811291</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-10-02T07:06:59Z</dc:date>
    </item>
  </channel>
</rss>

