<?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 Fix Selection (Chart Expression, Set Analysis) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fix-Selection-Chart-Expression-Set-Analysis/m-p/486876#M1145717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My chart currently looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="44071" class="jive-image-thumbnail jive-image" height="352" onclick="" alt="bdchart.jpg" src="https://community.qlik.com/legacyfs/online/44071_bdchart.jpg" width="673" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have done so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the maximum budget (of hours), I created a variable named vMax. As of now, it's defined as 40 * Count(TOTAL DISTINCT([Resource Name])) * Count(TOTAL DISTINCT([Order Date])).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then used vMax for the expressions for Allocated and Actuals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Allocated, I have: =$(vMax) - num([Order Month]) * $(vMax)/(Count(TOTAL DISTINCT([Order Month]))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screencap above is exactly how I want my chart to look like. I also checked the numbers and they're correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I want to ignore year, month and date selections. I want the year to be fixed to 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using set analysis in my chart expressions as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMax = 40 * Count({&amp;lt;[Order Month]=,[Order Date]=,[Order Year]={2013}&amp;gt;}TOTAL DISTINCT([Resource Name])) * Count({&amp;lt;[Order Month]=,[Order Date]=,[Order Year]={2013}&amp;gt;}TOTAL DISTINCT([Order Date]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allocated = $(vMax) - num([Order Month]) * $(vMax)/(Count({&amp;lt;[Order Month]=,[Order Date]=,[Order Year]={2013}&amp;gt;}TOTAL DISTINCT([Order Month]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it's not behaving the way I want to. I could still select year, month and date and the chart will change based on my selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried removing the keyword TOTAL in all of my expressions, but I ended up with a completely different chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you guide me on how I can fix my current selection to year 2013 and ignore all the other selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2013 18:06:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-16T18:06:01Z</dc:date>
    <item>
      <title>Fix Selection (Chart Expression, Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Fix-Selection-Chart-Expression-Set-Analysis/m-p/486876#M1145717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My chart currently looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="44071" class="jive-image-thumbnail jive-image" height="352" onclick="" alt="bdchart.jpg" src="https://community.qlik.com/legacyfs/online/44071_bdchart.jpg" width="673" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have done so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the maximum budget (of hours), I created a variable named vMax. As of now, it's defined as 40 * Count(TOTAL DISTINCT([Resource Name])) * Count(TOTAL DISTINCT([Order Date])).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then used vMax for the expressions for Allocated and Actuals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Allocated, I have: =$(vMax) - num([Order Month]) * $(vMax)/(Count(TOTAL DISTINCT([Order Month]))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screencap above is exactly how I want my chart to look like. I also checked the numbers and they're correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I want to ignore year, month and date selections. I want the year to be fixed to 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using set analysis in my chart expressions as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMax = 40 * Count({&amp;lt;[Order Month]=,[Order Date]=,[Order Year]={2013}&amp;gt;}TOTAL DISTINCT([Resource Name])) * Count({&amp;lt;[Order Month]=,[Order Date]=,[Order Year]={2013}&amp;gt;}TOTAL DISTINCT([Order Date]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allocated = $(vMax) - num([Order Month]) * $(vMax)/(Count({&amp;lt;[Order Month]=,[Order Date]=,[Order Year]={2013}&amp;gt;}TOTAL DISTINCT([Order Month]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it's not behaving the way I want to. I could still select year, month and date and the chart will change based on my selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried removing the keyword TOTAL in all of my expressions, but I ended up with a completely different chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you guide me on how I can fix my current selection to year 2013 and ignore all the other selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 18:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fix-Selection-Chart-Expression-Set-Analysis/m-p/486876#M1145717</guid>
      <dc:creator />
      <dc:date>2013-07-16T18:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fix Selection (Chart Expression, Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Fix-Selection-Chart-Expression-Set-Analysis/m-p/486877#M1145718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allocated = $(vMax) - only(&lt;STRONG&gt;{&amp;lt;[Order Month]=,[Order Date]=,[Order Year]={2013}&amp;gt;}&lt;/STRONG&gt; [Order Month]) * $(vMax)/(Count({&amp;lt;[Order Month]=,[Order Date]=,[Order Year]={2013}&amp;gt;}TOTAL DISTINCT([Order Month]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 18:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fix-Selection-Chart-Expression-Set-Analysis/m-p/486877#M1145718</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-16T18:19:30Z</dc:date>
    </item>
  </channel>
</rss>

