<?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: histogram dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473622#M176937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which is the relation between num_annee and NUM_JOUR in your data model? Aren't they in the same table? If you could post your data model information it would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 07:55:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-03T07:55:10Z</dc:date>
    <item>
      <title>histogram dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473621#M176936</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;I've got this issue with my histogram : I have to choose between several years (the dimension), and if only 1 year is picked, I have one column, in the other case, I have as much columns as years picked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2009.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46123_2009.png" style="width: 620px; height: 165px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The principe is the next : count(NUM_JOUR)/&lt;SPAN style="color: #3366ff;"&gt;((count( {$&amp;lt;NUM_ANNEE = &amp;gt;} AGENT_ID )/12)*365)&lt;/SPAN&gt;. In this expression, the Count(NUM_JOUR) doesn't work when there are 2+ years picked. &lt;/P&gt;&lt;P&gt;As we can see, there is num_annee which influence the histogram, but when you pick 1 or several years, it's also change a variable called : annee_conge. &lt;SPAN style="color: #ff0000;"&gt;count(NUM_JOUR) &lt;/SPAN&gt;depends of &lt;SPAN style="color: #ff0000;"&gt;annee_conge&lt;/SPAN&gt; and &lt;SPAN style="color: #3366ff;"&gt;((count( {$&amp;lt;NUM_ANNEE = &amp;gt;} AGENT_ID )/12)*365) &lt;/SPAN&gt;depends of&lt;SPAN style="color: #3366ff;"&gt; num_annee&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="fail.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46127_fail.png" style="width: 620px; height: 166px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, it's NUM_JOUR_2009 + NUM_JOUR_2010, which are divided by the rest of the expression. But I want the first bar to be divided by NUM_JOUR_2009 and the second one by NUM_JOUR_2010. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to make to specify to Count(NUM_JOUR) to pick for every column only the year concerned and not the sum of every year ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 07:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473621#M176936</guid>
      <dc:creator />
      <dc:date>2013-09-03T07:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: histogram dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473622#M176937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which is the relation between num_annee and NUM_JOUR in your data model? Aren't they in the same table? If you could post your data model information it would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 07:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473622#M176937</guid>
      <dc:creator />
      <dc:date>2013-09-03T07:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: histogram dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473623#M176938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the thing is the data model is not optimized, and for the comprehension, I changed a name. annee_conge = NUM_ANNEE&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46128_table.png" style="width: 620px; height: 508px;" /&gt;&lt;/P&gt;&lt;P&gt;So there is a num_annee and a NUM_ANNEE, and I'm affraid that is the problem, so this is why I want to specify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 08:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473623#M176938</guid>
      <dc:creator />
      <dc:date>2013-09-03T08:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: histogram dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473624#M176939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the problem seems to be there. The num_annee you have in the agent table is not the same that you have in the calendar, so QV cannot make a proper relation between them. You should have all the date fields in the same table (both, num_annee and NUM_JOUR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 08:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473624#M176939</guid>
      <dc:creator />
      <dc:date>2013-09-03T08:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: histogram dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473625#M176940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NUM_JOUR is in Calendrier, I wasn't paying attention, and I forgot to maximize the window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is , in Calendrier, the year is the year where an employee was absent, and in agent, it's the year where he was employed. So I need this distinction between those two. But right now I changed the name of NUM_ANNEE to annee_conge, but still, I've got the same issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two aren't linked anymore, but when I want to pick two dates, it's a sum of NUM_JOUR of the dates.&lt;/P&gt;&lt;P&gt;I rehost the good data model&lt;IMG alt="export.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46129_export.png" style="width: 620px; height: 508px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 08:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/histogram-dimensions/m-p/473625#M176940</guid>
      <dc:creator />
      <dc:date>2013-09-03T08:31:54Z</dc:date>
    </item>
  </channel>
</rss>

