<?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 AW:Bar chart with calculated dimension for (M &amp; YTD) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235523#M86779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;body&amp;gt;&amp;lt;p&amp;gt;For the moment, I load a &amp;amp;#39;calendar table&amp;amp;#39; like this:&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;As you can see, I have duplicated Feb-11 in order that my data appears for my stat M and YTD. &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;So after I can use the column &amp;amp;#39;Stat&amp;amp;#39; has a dimension of my chart. &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;It is a correct approach? Is there more straight one?&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt; &amp;lt;table border="0" cellpadding="0" cellspacing="0" width="138"&amp;gt; &amp;lt;p&amp;gt;&amp;lt;col style="width:56pt;" width="74"&amp;gt;&amp;lt;/col&amp;gt; &amp;lt;col style="width:48pt;" width="64"&amp;gt;&amp;lt;/col&amp;gt; &amp;lt;tbody&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl24" style="height:12.75pt;width:56pt;" height="17" width="74"&amp;gt;OpenMonth&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-left:medium none;width:48pt;" width="64"&amp;gt;Stat&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;1/1/2010&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;YTD-1&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;2/1/2010&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;YTD-1&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;1/1/2011&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;YTD&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;2/1/2011&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;YTD&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;2/1/2011&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;M&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;/tbody&amp;gt; &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt; &amp;lt;/table&amp;gt; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2011 09:59:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-02T09:59:05Z</dc:date>
    <item>
      <title>Bar chart with calculated dimension for (M &amp; YTD)</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235520#M86776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My objective is to build a 100% stacked bar chart with 2dimension and 1expression. In x Axis, I would find [Current Month], [YTD], [YTD-1] (so, I can compare the repartition over the time).&lt;/P&gt;&lt;P&gt;I guess I need to create a calculated dimension for that; but how will my observations of the current month, being counted twice for [Current Month] and [YTD]?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 09:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235520#M86776</guid>
      <dc:creator />
      <dc:date>2011-03-02T09:01:30Z</dc:date>
    </item>
    <item>
      <title>AW:Bar chart with calculated dimension for (M &amp; YTD)</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235521#M86777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;best way is, to create a table as calender in the script with all needed datefunctions and combine it to your datefield in data. Than you dont need to create a dynamic dimension (what of course is possible).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 09:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235521#M86777</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-03-02T09:14:53Z</dc:date>
    </item>
    <item>
      <title>AW:Bar chart with calculated dimension for (M &amp; YTD)</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235522#M86778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply. I am trying to picture your idea but I am still new in QV.&lt;/P&gt;&lt;P&gt;On another object, I use following expressions:&lt;/P&gt;&lt;P&gt;For observation of the month: count( { $ &amp;lt; OpenMonth = {'$(#v_dateselection)'} &amp;gt;} [SD])&lt;/P&gt;&lt;P&gt;For observation of the YTD: count( {$ &amp;lt;OpenMonth = {"=NUM(OpenMonth) &amp;lt;= $(=NUM(v_dateselection))"}, OpenYear={$(=YEAR(v_dateselection))}&amp;gt; }SD)&lt;/P&gt;&lt;P&gt;where v_dateselection is the a date format&lt;/P&gt;&lt;P&gt;Now, in OpenMonth, I have thousand of different dates, so how am I going to build a 'calender' table? Would I need a column OpenMonth to make a link with my fact table? Should this column contain all distinct value of OpenMonth from my fact table?&lt;/P&gt;&lt;P&gt;I can't figure out the format of your calender table. It is empty? All columns are only build from expression based on the date?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 09:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235522#M86778</guid>
      <dc:creator />
      <dc:date>2011-03-02T09:32:26Z</dc:date>
    </item>
    <item>
      <title>AW:Bar chart with calculated dimension for (M &amp; YTD)</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235523#M86779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;body&amp;gt;&amp;lt;p&amp;gt;For the moment, I load a &amp;amp;#39;calendar table&amp;amp;#39; like this:&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;As you can see, I have duplicated Feb-11 in order that my data appears for my stat M and YTD. &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;So after I can use the column &amp;amp;#39;Stat&amp;amp;#39; has a dimension of my chart. &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;It is a correct approach? Is there more straight one?&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt; &amp;lt;table border="0" cellpadding="0" cellspacing="0" width="138"&amp;gt; &amp;lt;p&amp;gt;&amp;lt;col style="width:56pt;" width="74"&amp;gt;&amp;lt;/col&amp;gt; &amp;lt;col style="width:48pt;" width="64"&amp;gt;&amp;lt;/col&amp;gt; &amp;lt;tbody&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl24" style="height:12.75pt;width:56pt;" height="17" width="74"&amp;gt;OpenMonth&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-left:medium none;width:48pt;" width="64"&amp;gt;Stat&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;1/1/2010&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;YTD-1&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;2/1/2010&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;YTD-1&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;1/1/2011&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;YTD&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;2/1/2011&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;YTD&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr style="height:12.75pt;"&amp;gt; &amp;lt;td class="xl25" style="height:12.75pt;border-top:medium none;" align="right" height="17"&amp;gt;2/1/2011&amp;lt;/td&amp;gt; &amp;lt;td class="xl24" style="border-top:medium none;border-left:medium none;"&amp;gt;M&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;/tbody&amp;gt; &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt; &amp;lt;/table&amp;gt; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 09:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235523#M86779</guid>
      <dc:creator />
      <dc:date>2011-03-02T09:59:05Z</dc:date>
    </item>
    <item>
      <title>AW:Bar chart with calculated dimension for (M &amp; YTD)</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235524#M86780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the output I am getting with the solution mentioned above.&lt;/P&gt;&lt;P&gt;The output is what I want, but the solution is not. I don't mind to load an additional table, but not in the format mentioned above (because it serves only this need) and dirty the data model.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7142.BarChart-with-YTD_2600_M.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7142.BarChart-with-YTD_2600_M.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 07:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235524#M86780</guid>
      <dc:creator />
      <dc:date>2011-03-04T07:43:59Z</dc:date>
    </item>
    <item>
      <title>AW:Bar chart with calculated dimension for (M &amp; YTD)</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235525#M86781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally followed the example mentioned here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/32982.aspx" target="_blank" title="http://community.qlik.com/forums/t/32982.aspx"&gt;http://community.qlik.com/forums/t/32982.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is my adjusted script (I am dealing with Date which are always the 1st day of the month):&lt;/P&gt;&lt;P&gt;Dates:&lt;BR /&gt;Load Distinct OpenMonth as Date&lt;BR /&gt;Resident Fact;&lt;BR /&gt;&lt;BR /&gt;OpenAsOf:&lt;BR /&gt;LOAD&lt;BR /&gt; "Date" as "As of OpenMonth"&lt;BR /&gt;,'YTD' as "OpenMonth Range"&lt;BR /&gt;,MonthName("Date", - iterno() + 1) as "OpenMonth"&lt;BR /&gt;RESIDENT Dates&lt;BR /&gt;WHILE year("Date") = year(MonthName("Date", - iterno() + 1))&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (OpenAsOf)&lt;BR /&gt;LOAD&lt;BR /&gt; "Date" as "As of OpenMonth"&lt;BR /&gt;,'YTD-1' as "OpenMonth Range"&lt;BR /&gt;,MonthName("Date", - iterno() -11) as "OpenMonth"&lt;BR /&gt;RESIDENT Dates&lt;BR /&gt;WHILE year("Date")-1 = year(MonthName("Date", - iterno() -11))&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (OpenAsOf)&lt;BR /&gt;LOAD&lt;BR /&gt; "Date" as "As of OpenMonth"&lt;BR /&gt;,'M-1' as "OpenMonth Range"&lt;BR /&gt;,MonthName(Date,-1) as "OpenMonth"&lt;BR /&gt;RESIDENT Dates&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (OpenAsOf)&lt;BR /&gt;LOAD&lt;BR /&gt; "Date" as "As of OpenMonth"&lt;BR /&gt;,'M' as "OpenMonth Range"&lt;BR /&gt;,"Date" as "OpenMonth"&lt;BR /&gt;RESIDENT Dates&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE [Dates]&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 10:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-with-calculated-dimension-for-M-YTD/m-p/235525#M86781</guid>
      <dc:creator />
      <dc:date>2011-03-08T10:25:07Z</dc:date>
    </item>
  </channel>
</rss>

