<?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 line chart problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/bar-line-chart-problem/m-p/228183#M80239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I took a look at your sample and I think you are overcomplicating it, but maybe I am missing something. Do you want the past 4 weekends to be based on a selection or the max weekend in your data set? I assumed you wanted it based on the max (selection based is a bit different, but possible).&lt;/P&gt;&lt;P&gt;I got rid of your calculated dimension and expression. I set Weekday as the dimension and for the expression, used:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt;Weekend={'&amp;gt;=$(=Max({1}Weekend, 4))'}&amp;gt;}Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That will respect selections, but will only display the four most recent Weekday values. I've attached a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Apr 2010 20:31:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-29T20:31:37Z</dc:date>
    <item>
      <title>bar line chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/bar-line-chart-problem/m-p/228182#M80238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create a graph that will show sales for each week for the past 3 weeks + current week.&lt;/P&gt;&lt;P&gt;Basically this needs to looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" src="http://imgur.com/LT2vp.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried two approaches to do this graph.&lt;/P&gt;&lt;P&gt;I created a bar chart with selected 'values on data points' and I made bars invisible. I can't seem to find a way to connect those data points. If I would be able to connect the data points then this graph would be finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I made a line chart, and for this I played around with calculated dimension with no luck as I'm not very good at qlikview syntax.&lt;/P&gt;&lt;P&gt;Can somebody help/guide me to solve this? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 16:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/bar-line-chart-problem/m-p/228182#M80238</guid>
      <dc:creator />
      <dc:date>2010-04-29T16:59:46Z</dc:date>
    </item>
    <item>
      <title>bar line chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/bar-line-chart-problem/m-p/228183#M80239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I took a look at your sample and I think you are overcomplicating it, but maybe I am missing something. Do you want the past 4 weekends to be based on a selection or the max weekend in your data set? I assumed you wanted it based on the max (selection based is a bit different, but possible).&lt;/P&gt;&lt;P&gt;I got rid of your calculated dimension and expression. I set Weekday as the dimension and for the expression, used:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt;Weekend={'&amp;gt;=$(=Max({1}Weekend, 4))'}&amp;gt;}Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That will respect selections, but will only display the four most recent Weekday values. I've attached a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 20:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/bar-line-chart-problem/m-p/228183#M80239</guid>
      <dc:creator />
      <dc:date>2010-04-29T20:31:37Z</dc:date>
    </item>
    <item>
      <title>bar line chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/bar-line-chart-problem/m-p/228184#M80240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for your feedback.&lt;/P&gt;&lt;P&gt;I want the past 4 weekends to be based on selection.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 14:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/bar-line-chart-problem/m-p/228184#M80240</guid>
      <dc:creator />
      <dc:date>2010-05-04T14:38:01Z</dc:date>
    </item>
    <item>
      <title>bar line chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/bar-line-chart-problem/m-p/228185#M80241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that makes it a little more difficult. First, you're going to have to determine what to do if multiple months are selected or if no months are selected. You can force a month to be selected by checking the Always One Selected Value on the List Box. For multiple selections, there are multiple options. You can use the max selected or use a macro to change the selection. I posted an example of using a macro to change multiple selections to one on the forum a while back.&lt;/P&gt;&lt;P&gt;Once you have one selected value in the field, you can use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum(&lt;BR /&gt;{&amp;lt;Weekend={'&amp;gt;=$(=Date(GetFieldSelections(Weekend) - 28))&lt;BR /&gt;&amp;lt;=$(=Date(GetFieldSelections(Weekend)+1))'}&amp;gt;}&lt;BR /&gt;Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I've attached a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 15:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/bar-line-chart-problem/m-p/228185#M80241</guid>
      <dc:creator />
      <dc:date>2010-05-05T15:49:37Z</dc:date>
    </item>
  </channel>
</rss>

