<?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 Help charting with timeline in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-charting-with-timeline/m-p/164142#M36945</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 am having some difficulty with a a stacked bar chart using fiscal year with drill down in to fiscal quarter and fiscal month.&lt;/P&gt;&lt;P&gt;First thing is to limit the bars on the chart dynamically to AddYears(Today(),-1) through AddYears(Today(), +5). I was able to get this working using IF statements, but I thought there maybe was a better (faster/optimal) way?&lt;/P&gt;&lt;P&gt;My Fact table looks something like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date1&lt;/LI&gt;&lt;LI&gt;Date2&lt;/LI&gt;&lt;LI&gt;Date3&lt;/LI&gt;&lt;LI&gt;Date4&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;DateX&lt;/LI&gt;&lt;LI&gt;Flag1&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;FlagX&lt;/LI&gt;&lt;LI&gt;Category&lt;/LI&gt;&lt;LI&gt;Sale_Amnt1&lt;/LI&gt;&lt;LI&gt;Sale_Amnt2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The chart should be Sale_Amnt stacked by category where flag =1 and Date1 &amp;lt; Date2 and Date1 is in the display range (2010-2016). For Example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date1 = 3/3/2011&lt;/LI&gt;&lt;LI&gt;Date2 = 3/3/2013&lt;/LI&gt;&lt;LI&gt;SaleAmt = $10&lt;/LI&gt;&lt;LI&gt;Category = A&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Then $10 should show up for each bar 2011, 2012, 2013 stacked in the "A" segment&lt;/P&gt;&lt;P&gt;I have it set up now so my Dimension is Date1 and have a feeling this is incorrect...&lt;/P&gt;&lt;P&gt;My Expressions are nested IF statments, e.g.:&lt;/P&gt;&lt;P&gt;IF(flag=1 and Date1 &amp;lt; Date2, IF(Category ='A', IF(SomeotherCondition, SaleAmnt1, Saleamnt2)))&lt;/P&gt;&lt;P&gt;I also have built a master calendar of fiscal dates 1995 through 2020. But because there are many date fields in my fact table I was not sure how to link the calendar to the fact table.&lt;/P&gt;&lt;P&gt;Currently the chart is very slow and the data is coming out incorrectly bucketed.&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2011 14:09:25 GMT</pubDate>
    <dc:creator>joefeyas</dc:creator>
    <dc:date>2011-03-16T14:09:25Z</dc:date>
    <item>
      <title>Help charting with timeline</title>
      <link>https://community.qlik.com/t5/QlikView/Help-charting-with-timeline/m-p/164142#M36945</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 am having some difficulty with a a stacked bar chart using fiscal year with drill down in to fiscal quarter and fiscal month.&lt;/P&gt;&lt;P&gt;First thing is to limit the bars on the chart dynamically to AddYears(Today(),-1) through AddYears(Today(), +5). I was able to get this working using IF statements, but I thought there maybe was a better (faster/optimal) way?&lt;/P&gt;&lt;P&gt;My Fact table looks something like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date1&lt;/LI&gt;&lt;LI&gt;Date2&lt;/LI&gt;&lt;LI&gt;Date3&lt;/LI&gt;&lt;LI&gt;Date4&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;DateX&lt;/LI&gt;&lt;LI&gt;Flag1&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;FlagX&lt;/LI&gt;&lt;LI&gt;Category&lt;/LI&gt;&lt;LI&gt;Sale_Amnt1&lt;/LI&gt;&lt;LI&gt;Sale_Amnt2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The chart should be Sale_Amnt stacked by category where flag =1 and Date1 &amp;lt; Date2 and Date1 is in the display range (2010-2016). For Example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date1 = 3/3/2011&lt;/LI&gt;&lt;LI&gt;Date2 = 3/3/2013&lt;/LI&gt;&lt;LI&gt;SaleAmt = $10&lt;/LI&gt;&lt;LI&gt;Category = A&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Then $10 should show up for each bar 2011, 2012, 2013 stacked in the "A" segment&lt;/P&gt;&lt;P&gt;I have it set up now so my Dimension is Date1 and have a feeling this is incorrect...&lt;/P&gt;&lt;P&gt;My Expressions are nested IF statments, e.g.:&lt;/P&gt;&lt;P&gt;IF(flag=1 and Date1 &amp;lt; Date2, IF(Category ='A', IF(SomeotherCondition, SaleAmnt1, Saleamnt2)))&lt;/P&gt;&lt;P&gt;I also have built a master calendar of fiscal dates 1995 through 2020. But because there are many date fields in my fact table I was not sure how to link the calendar to the fact table.&lt;/P&gt;&lt;P&gt;Currently the chart is very slow and the data is coming out incorrectly bucketed.&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 14:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-charting-with-timeline/m-p/164142#M36945</guid>
      <dc:creator>joefeyas</dc:creator>
      <dc:date>2011-03-16T14:09:25Z</dc:date>
    </item>
  </channel>
</rss>

