<?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 Re: How to use max(Date) on a date range in a Bar Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796866#M281515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.PFA the application along with source excel."As of&lt;/P&gt;&lt;P&gt;Date" for "2014" is different from "2013","2015" and "2016" then even if I&lt;/P&gt;&lt;P&gt;select year "2015" in the filter, chart will show value for 2013,2015 and&lt;/P&gt;&lt;P&gt;2016 but not 2014.If I select year "2014" then I will get only one value&lt;/P&gt;&lt;P&gt;for '"2014" and not the entire year range.I have attached the screenshots&lt;/P&gt;&lt;P&gt;where in first case when "As of Date" is same I see data for the entire&lt;/P&gt;&lt;P&gt;Year range but when "As of Date" is different I don't see the year for&lt;/P&gt;&lt;P&gt;which "As of Date" is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harshad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This communication is confidential and subject to and governed by the &lt;/P&gt;&lt;P&gt;confidentiality and use restrictions contained in Saama’s Electronic &lt;/P&gt;&lt;P&gt;Communications Disclaimer. &amp;lt;http://www.saama.com/disclaimer&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 07:05:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-10T07:05:20Z</dc:date>
    <item>
      <title>How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796863#M281512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to show values considering only the maximum(As of date) in a Bar chart. When I select a year from the filter the bar chart should show 4 years before and 4 years after the selected year.I am using the below expression in the Bar chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=num(Round((avg({$&amp;lt;As_Of_Date={'$(vMax_As_Of_Date_GDP)'},Year_No = {"&amp;gt;=$(vPrev4CurrentYear) &amp;lt;=$(vFuture4CurrentYear) "},Flag= {'GDP'},Country={'US'}&amp;gt;} GDP_Forecast)),0.1)/100,'#,##0.0%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMax_As_Of_Date_GDP=max({&amp;lt;Flag={'GDP'}&amp;gt;}As_Of_Date)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If the "As of Date" is same for all the years then there is no issue.But if it is different for some year then chart does not show the value for that year.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have attached the screenshots where in first case when "As of Date" is same I see data for the entire Year range but when "As of Date" is different I don't see the year for which "As of Date" is different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 06:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796863#M281512</guid>
      <dc:creator />
      <dc:date>2014-11-10T06:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796864#M281513</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;Share your app, pls, or sample dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 06:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796864#M281513</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-10T06:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796865#M281514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.PFA the application along with source excel.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"As of Date" for "2014" is different from "2013","2015" and "2016" then even if I select year "2015" in the filter, chart will show value for 2013,2015 and 2016 but not 2014.If I select year "2014" then I will get only one value for '"2014" and not the entire year range.I have attached the screenshots where in first case when "As of Date" is same I see data for the entire Year range but when "As of Date" is different I don't see the year for which "As of Date" is different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harshad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 07:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796865#M281514</guid>
      <dc:creator />
      <dc:date>2014-11-10T07:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796866#M281515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.PFA the application along with source excel."As of&lt;/P&gt;&lt;P&gt;Date" for "2014" is different from "2013","2015" and "2016" then even if I&lt;/P&gt;&lt;P&gt;select year "2015" in the filter, chart will show value for 2013,2015 and&lt;/P&gt;&lt;P&gt;2016 but not 2014.If I select year "2014" then I will get only one value&lt;/P&gt;&lt;P&gt;for '"2014" and not the entire year range.I have attached the screenshots&lt;/P&gt;&lt;P&gt;where in first case when "As of Date" is same I see data for the entire&lt;/P&gt;&lt;P&gt;Year range but when "As of Date" is different I don't see the year for&lt;/P&gt;&lt;P&gt;which "As of Date" is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harshad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This communication is confidential and subject to and governed by the &lt;/P&gt;&lt;P&gt;confidentiality and use restrictions contained in Saama’s Electronic &lt;/P&gt;&lt;P&gt;Communications Disclaimer. &amp;lt;http://www.saama.com/disclaimer&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 07:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796866#M281515</guid>
      <dc:creator />
      <dc:date>2014-11-10T07:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796867#M281516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, that when you select 2014 your expression is &lt;/P&gt;&lt;P&gt;=num(Round((avg({$&amp;lt;As_Of_Date={'8/23/2014'},Year_No = {"&amp;gt;=2010 &amp;lt;=2018 "},Country={'US'}&amp;gt;} GDP_Forecast)),0.1)/100,'#,##0.0%')&lt;/P&gt;&lt;P&gt;and you have actual data for US and 2014 and 8/23/2014.&lt;/P&gt;&lt;P&gt;But if you select 2015 for example your expression is &lt;/P&gt;&lt;P&gt;=num(Round((avg({$&amp;lt;As_Of_Date={'4/1/2014'},Year_No = {"&amp;gt;=2011 &amp;lt;=2019 "},Country={'US'}&amp;gt;} GDP_Forecast)),0.1)/100,'#,##0.0%')&lt;/P&gt;&lt;P&gt;and you don't have 2014 data for 4/1/2014 date and Country US.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 07:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796867#M281516</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-10T07:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796868#M281517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, my question is What do you actually need to see? The usage of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"As of Date"&lt;/SPAN&gt;&amp;nbsp; is not clear for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 07:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796868#M281517</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-10T07:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796869#M281518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to show GDP values for each year only for the latest "As of Date".If max(As of Date) is 4/1/2014 for 2013, 8/23/2014 for 2014 and 10/1/2014&amp;nbsp; for 2015 then my chart should show the corresponding value for 4/1/2014 for 2013, 8/23/2014 for 2014 and 10/1/2014 for 2015 when I select 2013 from the filter.Since multiple forecasts(distinguised by As of Date) for GDP are done, user wants to see only the value corresponding from the latest "As of Date".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: if there are 2 GDP values for year 2014&lt;/P&gt;&lt;P&gt;1) 8.4 with As of Date-04/01/2014&lt;/P&gt;&lt;P&gt;2) 5.6 with As of Date-08/23/2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then chart needs to show GDP value as 5.6 for year 2014&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 08:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796869#M281518</guid>
      <dc:creator />
      <dc:date>2014-11-10T08:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796870#M281519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to show GDP values for each year only for the latest "As of Date".If&lt;/P&gt;&lt;P&gt;max(As of Date) is 4/1/2014 for 2013, 8/23/2014 for 2014 and 10/1/2014  for&lt;/P&gt;&lt;P&gt;2015 then my chart should show the corresponding value for 4/1/2014 for&lt;/P&gt;&lt;P&gt;2013, 8/23/2014 for 2014 and 10/1/2014 for 2015 when I select 2013 from the&lt;/P&gt;&lt;P&gt;filter.Since multiple forecasts(distinguised by As of Date) for GDP are&lt;/P&gt;&lt;P&gt;done, user wants to see only the value corresponding from the latest "As of&lt;/P&gt;&lt;P&gt;Date".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: if there are 2 GDP values for year 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) 8.4 with As of Date-04/01/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) 5.6 with As of Date-08/23/2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then chart needs to show GDP value as 5.6 for year 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Mon, Nov 10, 2014 at 12:56 PM, Sergey Makushinsky &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 08:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796870#M281519</guid>
      <dc:creator />
      <dc:date>2014-11-10T08:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796871#M281520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use the following expression&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #0433ff;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Round&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({&amp;lt;&lt;/SPAN&gt;Country&lt;SPAN style="color: #000000;"&gt;={'US'},&lt;/SPAN&gt;Year_No&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;gt;=$(vPrev4CurrentYear) &amp;lt;=$(vFuture4CurrentYear) "&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt;GDP_Forecast&lt;SPAN style="color: #000000;"&gt;,-&lt;/SPAN&gt;As_Of_Date&lt;SPAN style="color: #000000;"&gt;)&lt;BR /&gt; ,0.1)/100,'#,##0.0%') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;PFA an example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 08:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796871#M281520</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-10T08:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796872#M281521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Sergey.It made my life easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Mon, Nov 10, 2014 at 2:05 PM, Sergey Makushinsky &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 11:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796872#M281521</guid>
      <dc:creator />
      <dc:date>2014-11-10T11:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796873#M281522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to use the expression for one measure-GDP.However I am using&lt;/P&gt;&lt;P&gt;many such measures such as RevPar for which expression is not working.I&lt;/P&gt;&lt;P&gt;have attached the excel files along with the qvw.The issue is with the&lt;/P&gt;&lt;P&gt;chart titled "RevPar".&lt;/P&gt;&lt;P&gt;Can you please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harshad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Mon, Nov 10, 2014 at 5:28 PM, Harshad Dayalu &amp;lt;harshad.dayalu@saama.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 13:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796873#M281522</guid>
      <dc:creator />
      <dc:date>2014-11-11T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796874#M281523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Hi Sergey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I was able to use the expression for one measure-GDP.However I am using many such measures such as RevPar for which expression is not working.I have attached the excel files along with the qvw.The issue is with the chart titled "RevPar".&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;Can you please help&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;Harshad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 14:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796874#M281523</guid>
      <dc:creator />
      <dc:date>2014-11-11T14:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796875#M281524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harshad,&lt;/P&gt;&lt;P&gt;You issue is there are several lines for one date, because you have data for several cities.&lt;/P&gt;&lt;P&gt;If you need to show the sum for all these cities you should aggregate it with aggr function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 01:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796875#M281524</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-12T01:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796876#M281525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please give me an example with that RevPar expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, Nov 12, 2014 at 7:30 AM, Sergey Makushinsky &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 05:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796876#M281525</guid>
      <dc:creator />
      <dc:date>2014-11-12T05:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796877#M281526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends what you need to do with values of RP_Forecast of different cities. Do you need to take the average or sum of one year and as_of_date or what?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 05:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796877#M281526</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-12T05:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796878#M281527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to take average of all the cities of country 'US' for each year only&lt;/P&gt;&lt;P&gt;for the max of As of Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: For year 2013,avg(RP_Forecast) for all cities of Country 'US' should be&lt;/P&gt;&lt;P&gt;5.6 since the max of As of Date is 9/15/2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the RevPar source file and qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, Nov 12, 2014 at 11:14 AM, Sergey Makushinsky &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 05:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796878#M281527</guid>
      <dc:creator />
      <dc:date>2014-11-12T05:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use max(Date) on a date range in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796879#M281528</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 changed load script, added the following&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #0433ff;"&gt;LEFT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;JOIN&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; (Data)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;Country&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;Flag&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;Year_No&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;As_Of_Date&lt;SPAN style="color: #000000;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;As_Of_Date&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt; 1 &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;LastAsOfDate&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; Data&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Group&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Country&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;Flag&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;Year_No&lt;SPAN style="color: #000000;"&gt;;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;And to calculate you can use the following expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Arial; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;Year_No&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"&amp;gt;=$(vPrev4CurrentYear) &amp;lt;=$(vFuture4CurrentYear) "&lt;SPAN style="color: #000000;"&gt;},&lt;/SPAN&gt;Country&lt;SPAN style="color: #000000;"&gt;={'US'},&lt;/SPAN&gt;Flag&lt;SPAN style="color: #000000;"&gt;={'RevPar'},&lt;/SPAN&gt;LastAsOfDate&lt;SPAN style="color: #000000;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;Year_No&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"&amp;gt;=$(vPrev4CurrentYear) &amp;lt;=$(vFuture4CurrentYear) "&lt;SPAN style="color: #000000;"&gt;},&lt;/SPAN&gt;Country&lt;SPAN style="color: #000000;"&gt;={'US'},&lt;/SPAN&gt;Flag&lt;SPAN style="color: #000000;"&gt;={'RevPar'},&lt;/SPAN&gt;LastAsOfDate&lt;SPAN style="color: #000000;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;RP_Forecast&lt;SPAN style="color: #000000;"&gt;),&lt;/SPAN&gt;Country&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;As_Of_Date&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;Year_No&lt;SPAN style="color: #000000;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;PFA&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 07:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-max-Date-on-a-date-range-in-a-Bar-Chart/m-p/796879#M281528</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-12T07:24:11Z</dc:date>
    </item>
  </channel>
</rss>

