<?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 Set Analysis Expression Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309350#M1184519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Got it &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2011 20:05:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-03T20:05:25Z</dc:date>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309346#M1184515</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'm trying to create a chart to show 1. Budget Revenue (for entire Year Jan-Dec), Actual Revenue ( From Jan to Current month) and Forecast Revenue (From Next Month to Dec). There is only one measure used for these which is "Amount". &lt;/P&gt;&lt;P&gt;The Dimension used is Month.&lt;/P&gt;&lt;P&gt;The expressions that I have so far (I know not much) are:&lt;/P&gt;&lt;P&gt;Budget: Sum ({&amp;lt;VersionID={'2011v6'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;Actuals: Sum ({&amp;lt;VersionStatus={current}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;Forecast: Sum ({&amp;lt;VersionID={'2011v7'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Version ID field looks like 2011v1, 2011v2 and so on.&lt;/P&gt;&lt;P&gt;there is also a version Key field with integer values 20, 21,22 and so on that I can manipulate. I do not know yet how the business would like the versions for Budget and Forecast handled so I have them hardcoded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As is probably evident from description above the Forecast numbers show up in the chart from the month after the Actuals end. &lt;/P&gt;&lt;P&gt;So, my question is how can I dynamically show data for Budget from Jan to current month and forecast data starting next month to December.&lt;/P&gt;&lt;P&gt;I'm trying to include something like $(=Month(today()) ), (=Month(today())-1) and so on to get the various months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&amp;nbsp; I think I cannot use Max(Month #) as we have data for a number of months in future for every version (which is Forecast Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone could help with the correct expression I would be very grateful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amitesh&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="left: -10000px; overflow: hidden; width: 1px; position: absolute; top: 0px; height: 1px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 17:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309346#M1184515</guid>
      <dc:creator />
      <dc:date>2011-10-03T17:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309347#M1184516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a combo chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1 Budget (Symbol): Sum ({&amp;lt;VersionID={'2011v6'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2 Actual/Forecast (Bar): if(Month&amp;gt;Month(Today()),Sum ({&amp;lt;VersionID={'2011v7'}&amp;gt;} Amount),Sum ({&amp;lt;VersionStatus={current}&amp;gt;} Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change The bar backround color: if(Month&amp;gt;Month(Today()),RGB(255,255,242))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See sample file Financial Controlling P&amp;amp;L Trends tab for a better example. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 18:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309347#M1184516</guid>
      <dc:creator />
      <dc:date>2011-10-03T18:27:15Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309348#M1184517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Marc,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Your expression worked, however, I'm having issues with the bar colors.&lt;/P&gt;&lt;P&gt;I did the following. I went to Chart Properties-&amp;gt;Colors Tab-&amp;gt; under Data Appearance and clicked on the color to change. in the dialog that opened under Base Color, I clicked "Calculated" followed by your expression for color change. But it did not work. I extended the syntax by making it &lt;/P&gt;&lt;P&gt;if(Month&amp;gt;Month(Today()),RGB(255,255,242), RGB(0,0,255)) with no luck.&lt;/P&gt;&lt;P&gt;I cannot find a bar background though I see Frame Background. &lt;/P&gt;&lt;P&gt;I looked at the sample file, but I do not see a calculated condition or a bar background setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 19:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309348#M1184517</guid>
      <dc:creator />
      <dc:date>2011-10-03T19:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309349#M1184518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to the expression dialog, and click the + next to the expression for actual/forecast. This is where the bar background color is is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 19:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309349#M1184518</guid>
      <dc:creator />
      <dc:date>2011-10-03T19:57:02Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309350#M1184519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Got it &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 20:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/309350#M1184519</guid>
      <dc:creator />
      <dc:date>2011-10-03T20:05:25Z</dc:date>
    </item>
  </channel>
</rss>

