<?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 Bar chart help ! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159863#M34344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in a couple of ways... I usually prefer to alter the Expression and not to build complicated Calculated Dimensions - those had proven to be quite heavy.&lt;/P&gt;&lt;P&gt;What I'd do in your case is add a Set Analysis condition in your Expression - something like Year={"&amp;gt;=2008"}. This will rule out any numbers prior to 2008&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2011 18:55:48 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2011-03-15T18:55:48Z</dc:date>
    <item>
      <title>Bar chart help !</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159859#M34340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to create a bar chart for every 6 months sales. I have a date field. How can I create a dimension (extracting from date field) for every 6 months interval on X-axis ?&lt;/P&gt;&lt;P&gt;For ex: Jan-2008, Jul-2008,Jan-2009, Jul-2009 so on…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 14:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159859#M34340</guid>
      <dc:creator />
      <dc:date>2011-03-14T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Bar chart help !</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159860#M34341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd add another field into the Calendar table and calculate an extra field that can be used as a dimension.&lt;/P&gt;&lt;P&gt;I'm sure there is more elegant way of calculating it, but at the moment all i can think of id this:&lt;/P&gt;&lt;P&gt;date(if(month(Date) &amp;lt;7, YearStart(Date), YearStart(Date, 0, 7) ), 'MMM-YYYY') as SixMonthsBucket&lt;/P&gt;&lt;P&gt;You can use the same formula in the chart, but it might be too heavy for large data sets.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 14:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159860#M34341</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-14T14:55:22Z</dc:date>
    </item>
    <item>
      <title>Bar chart help !</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159861#M34342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oleg..That's working fine.&lt;/P&gt;&lt;P&gt;One more small question. When i added that dimension to bar chart..iam getting 'SixMonthsBucket' values from Jan-2004 to Jan-2011. If i want to see only from Jan-2008 onwards...what will be the expression ?&lt;/P&gt;&lt;P&gt;I tried the below code in the expression but still getting same values from Jan-2004.&lt;/P&gt;&lt;P&gt;Code: If(SixMonthsBucket&amp;gt;'2008',SixMonthsBucket)&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 10:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159861#M34342</guid>
      <dc:creator />
      <dc:date>2011-03-15T10:08:53Z</dc:date>
    </item>
    <item>
      <title>Bar chart help !</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159862#M34343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you considered creating an independent Year-Month number using the autonumber function in your script.&lt;/P&gt;&lt;P&gt;In other words, create a line in your calendar script, such as:&lt;/P&gt;&lt;P&gt;autonumber(date(monthstart(Date), 'YYYYMM'), 99) as YMNum,&lt;/P&gt;&lt;P&gt;This orders all the dates in chronological order, due to the YYYYMM and then uses the autonumber to give each Year-Month value an independent ascending numerical value.&lt;/P&gt;&lt;P&gt;Then you can use set analysis against this number, such as:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YMNum={$(=max(YMNum)), Year=, Month=, Day=}&amp;gt;} Sales) for the latest value and&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YMNum={$(=max(YMNum)-N)}, Year=, Month=, Day=&amp;gt;} Sales) for any year-month value N-months prior.&lt;/P&gt;&lt;P&gt;This technique allows you also to cross the Year divide line without the typical problems associated to making a selection on Year, e.g. if I use set analysis to go YMNum &amp;amp; YMNum-1, and my end user selects January of a Year, the 1st column will show Jan of the year and the 2nd column will show December of the previous year.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 10:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159862#M34343</guid>
      <dc:creator />
      <dc:date>2011-03-15T10:53:01Z</dc:date>
    </item>
    <item>
      <title>Bar chart help !</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159863#M34344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in a couple of ways... I usually prefer to alter the Expression and not to build complicated Calculated Dimensions - those had proven to be quite heavy.&lt;/P&gt;&lt;P&gt;What I'd do in your case is add a Set Analysis condition in your Expression - something like Year={"&amp;gt;=2008"}. This will rule out any numbers prior to 2008&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 18:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-help/m-p/159863#M34344</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-15T18:55:48Z</dc:date>
    </item>
  </channel>
</rss>

