<?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 Expression help to compare 2 charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295884#M109773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thank you - Changed the 1st chart to use your max expression function, however I'm still unsure how to have the 2nd chart compare a year ago and then flip thru the quarters?&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is it possible to show the what the fiscal year and quarter represent in the chart in the title somehow?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;thanks again! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 21:46:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-20T21:46:54Z</dc:date>
    <item>
      <title>Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295882#M109771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have 2 charts side by side of the top 10 products.&amp;nbsp; I'd like the first chart to display the current quarter which would be the max of the Fiscal Year and Quarter and then next to it another chart that would show a year back and let you use filters to flip thru the quarters. Does anyone know how to do this?&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&amp;nbsp; Chart 1 my expressions shows:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart 1 - Sum({$&amp;lt;[Fiscal Year]={$(#=Only([Fiscal Year]))}&amp;gt;}[TOTAL REVENUE ($)])&lt;/P&gt;&lt;P&gt;' Is there a way to only pull MAX Fiscal year and MAX Quarter?&lt;/P&gt;&lt;P&gt;Chart 2 - Sum({$&amp;lt;[Fiscal Year]={$(#=Only([Fiscal Year])-1)}&amp;gt;}[TOTAL REVENUE ($)])&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 21:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295882#M109771</guid>
      <dc:creator />
      <dc:date>2011-07-20T21:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295883#M109772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried to use max() function instead only and to also set quarter in set expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Fiscal Year]={$(=max([Fiscal Year]))},[Quarter]= {$(=max([Quarter]))} &amp;gt;}[TOTAL REVENUE ($)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Quarter is of numeric or date type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that if you have also a Date and or month selected, you might need to clear the Date selection, like [Date]= , [Month]=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nachricht geändert durch swuehl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 21:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295883#M109772</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T21:27:53Z</dc:date>
    </item>
    <item>
      <title>Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295884#M109773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thank you - Changed the 1st chart to use your max expression function, however I'm still unsure how to have the 2nd chart compare a year ago and then flip thru the quarters?&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is it possible to show the what the fiscal year and quarter represent in the chart in the title somehow?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;thanks again! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 21:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295884#M109773</guid>
      <dc:creator />
      <dc:date>2011-07-20T21:46:54Z</dc:date>
    </item>
    <item>
      <title>Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295885#M109774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean with flipping thru quarters? May be with a variable selection box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Fiscal Year]={$(=max([Fiscal Year])-1), [Quarter]={$(varQuarterSelection)} }&amp;gt;}[TOTAL REVENUE ($)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A charts title is also an expression, so you could write something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= 'Revenue for FY' &amp;amp; max([Fiscal Year]) &amp;amp; ' Q' &amp;amp; max([Quarter])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get a title like&lt;/P&gt;&lt;P&gt;Revenue for FY2011 Q3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 22:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295885#M109774</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T22:01:06Z</dc:date>
    </item>
    <item>
      <title>Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295886#M109775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I'm still struggling a little.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how to create a variable selection box?&amp;nbsp; I went to settings/variable overview/add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, when I used the expression in the title it still chose Q4 for FY2012 even tho it hasn't happened and doesn't have any data?&amp;nbsp; It should have shown Q2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help &lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 22:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295886#M109775</guid>
      <dc:creator />
      <dc:date>2011-07-20T22:10:22Z</dc:date>
    </item>
    <item>
      <title>Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295887#M109776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable selection is done using an input box which is a sheet object like a chart (use context on sheet).&lt;/P&gt;&lt;P&gt;There you may define a new variable (like varQuarterSelection ) or choose existing one.&lt;/P&gt;&lt;P&gt;You can fill preset values with a dimension like Quarter using the expression field provided in the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see Q4 2012 but don't have data than you probably use a master calendar, do you?&lt;/P&gt;&lt;P&gt;The text should change as soon as you select a value (e.g. in list box).&lt;/P&gt;&lt;P&gt;You probably have a date like order date? You might limit the available date for selection by e.g. limiting the master calendar to the max order date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 22:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295887#M109776</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T22:19:56Z</dc:date>
    </item>
    <item>
      <title>Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295888#M109777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I understand - I created a input box and created buttons assigning values but my chart is still not populating? I'm not using any kind of a master calendar either?&lt;IMG alt="example var.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/6023_example+var.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 23:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295888#M109777</guid>
      <dc:creator />
      <dc:date>2011-07-20T23:05:35Z</dc:date>
    </item>
    <item>
      <title>Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295889#M109778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's getting a bit difficult to analyze from remote. If you want you could post your sample Application (there is an upload option in advanced editor here in the forum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 23:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295889#M109778</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T23:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295890#M109779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, hopefully this will help. I created an example file that shows my difficulties with the titles matching what it's actually pulling and that it won't show the previous years and qtr.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 00:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295890#M109779</guid>
      <dc:creator />
      <dc:date>2011-07-21T00:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295891#M109780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you were pretty close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fixed a typo (missing bracket, that's sometimes hard to find in the expression editor), tweak a little bit the input box and corrected the chart title to show variable instead of max Quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is something strange in your data set, if I select FY2012, it shows also available for selection FY2011 Q3 and FY2011 Q4, but FY2011 and FY2010 seems to be correct. It also seems to me that quarters FY2012 Q3 and FY2012 Q4 should exist, because there is a linkage to these quarters.&lt;/P&gt;&lt;P&gt;Might be an idea to check your source data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I go to bed now, have a nice day / evening,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 00:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295891#M109780</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-21T00:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295892#M109781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is your solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295892#M109781</guid>
      <dc:creator>rahulgupta</dc:creator>
      <dc:date>2011-07-21T10:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295893#M109782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, Thank you!!! This is really helpful!&amp;nbsp; I think I figured out why the title wants to display Q4 for year 2012 even tho there's no data - it's just taking the MAX of the Quarter field - is there any way for it to know to take what is actually being displayed? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 15:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295893#M109782</guid>
      <dc:creator />
      <dc:date>2011-07-21T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295894#M109783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look at your data source, you have rows there with&amp;nbsp; FY 2012, and Quarter 3 and 4, but then "Fiscal Quarter and Year" is "2011 Q3" resp. "2011 Q4". In other words, FY, Quarter and "Fiscal Quarter and Year" are inconsistent already in the source data.&lt;/P&gt;&lt;P&gt;That is not correct, maybe you can fix it in the excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will also fix the apparently problem with your titles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 16:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295894#M109783</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-21T16:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295895#M109784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I actually did fix the source data but the problem is still there – I’ve attached the source data to illustrate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 16:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295895#M109784</guid>
      <dc:creator />
      <dc:date>2011-07-21T16:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help to compare 2 charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295896#M109785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I see what your problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of max FY and max Quarter separately, we can look at max "Financial Quarter and Year" using maxstring() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 16:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-to-compare-2-charts/m-p/295896#M109785</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-21T16:52:36Z</dc:date>
    </item>
  </channel>
</rss>

