<?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: Chart with two alternative dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-with-two-alternative-dimensions/m-p/1642553#M447284</link>
    <description>&lt;P&gt;Sounds good, let us know what you end up doing.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Sunny&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2019 14:05:44 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-11-04T14:05:44Z</dc:date>
    <item>
      <title>Chart with two alternative dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-two-alternative-dimensions/m-p/1641708#M447240</link>
      <description>&lt;P&gt;Let's begin with an example:&lt;/P&gt;&lt;P&gt;LOAD * inline [&lt;/P&gt;&lt;P&gt;Customer|Agente_BDG|Bdg&lt;/P&gt;&lt;P&gt;Cus1|Ag1|40&lt;BR /&gt;Cus2|Ag1|42&lt;BR /&gt;Cus3|Ag2|60&lt;BR /&gt;Cus4|Ag1|13&lt;BR /&gt;Cus5|Ag2|45&lt;BR /&gt;Cus6|Ag1|78&lt;/P&gt;&lt;P&gt;] (delimiter is '|');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * inline [&lt;/P&gt;&lt;P&gt;Customer|Agent&lt;/P&gt;&lt;P&gt;Cus1|Ag2&lt;BR /&gt;Cus2|Ag2&lt;BR /&gt;Cus3|Ag2&lt;BR /&gt;Cus4|Ag1&lt;BR /&gt;Cus5|Ag1&lt;BR /&gt;Cus6|Ag1&lt;/P&gt;&lt;P&gt;] (delimiter is '|');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i sum the bdg values by the Agent dimension i get:&lt;/P&gt;&lt;P&gt;Ag1 136&lt;/P&gt;&lt;P&gt;Ag2 142&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i sum instead the bdg values by Agente_BDG dimension i get:&lt;/P&gt;&lt;P&gt;Ag1 173&lt;/P&gt;&lt;P&gt;Ag2 105&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to create a graph like this:&lt;/P&gt;&lt;P&gt;Ag1 136 173&lt;/P&gt;&lt;P&gt;Ag2 142 105&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put in the chart the dimenson "Agent" and,&lt;/P&gt;&lt;P&gt;in the first column the expression "=SUM(Bdg)"&lt;/P&gt;&lt;P&gt;in the second colum some similar to "=aggr( sum( total Bdg),Agente_BDG)"&lt;/P&gt;&lt;P&gt;Obiuvsly the last expression doesn't work.&lt;/P&gt;&lt;P&gt;Any help for me? Thanks in advance!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 13:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-two-alternative-dimensions/m-p/1641708#M447240</guid>
      <dc:creator>fabio</dc:creator>
      <dc:date>2019-10-31T13:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with two alternative dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-two-alternative-dimensions/m-p/1641833#M447248</link>
      <description>&lt;P&gt;Not sure if script modification can be made or not, but one way would be to create an island table like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1:
LOAD * INLINE [
    Customer, Agente_BDG, Bdg
    Cus1, Ag1, 40
    Cus2, Ag1, 42
    Cus3, Ag2, 60
    Cus4, Ag1, 13
    Cus5, Ag2, 45
    Cus6, Ag1, 78
];

Table2:
LOAD * INLINE [
    Customer, Agent
    Cus1, Ag2
    Cus2, Ag2
    Cus3, Ag2
    Cus4, Ag1
    Cus5, Ag1
    Cus6, Ag1
];

IslandTable:
LOAD DISTINCT Agente_BDG as IslandAgent
Resident Table1;

Concatenate (IslandTable)
LOAD DISTINCT Agent as IslandAgent
Resident Table2
Where not Exists(Agente_BDG, Agent);&lt;/LI-CODE&gt;&lt;P&gt;and then use IslandAgent as dimension and following expressions&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(If(IslandAgent = Agent, Bdg))
Sum(If(IslandAgent = Agente_BDG, Bdg))&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 577px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22729i702BABD4C7051839/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 17:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-two-alternative-dimensions/m-p/1641833#M447248</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-31T17:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with two alternative dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-two-alternative-dimensions/m-p/1642544#M447283</link>
      <description>&lt;P&gt;Thanks for your idea!&lt;/P&gt;&lt;P&gt;meantime i found another way, i created a table summing the values at agent level with the correct grouping, like this :&lt;/P&gt;&lt;P&gt;Budget_grouped:&lt;BR /&gt;LOAD&lt;BR /&gt;Agente_BDG as Agente,&lt;BR /&gt;sum(Bdg) as BdgSummed&lt;BR /&gt;resident Budget&lt;BR /&gt;group by Agente_BDG;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to do some test to find the best way for the user selections, analisys and so on..&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 13:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-two-alternative-dimensions/m-p/1642544#M447283</guid>
      <dc:creator>fabio</dc:creator>
      <dc:date>2019-11-04T13:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with two alternative dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-two-alternative-dimensions/m-p/1642553#M447284</link>
      <description>&lt;P&gt;Sounds good, let us know what you end up doing.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Sunny&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 14:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-two-alternative-dimensions/m-p/1642553#M447284</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-04T14:05:44Z</dc:date>
    </item>
  </channel>
</rss>

