<?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: If sheet filtered by month, one chart should be filtering that month -1 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012829#M15012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you make a selection in the Month field then you also need to overrule that selection:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;&lt;STRONG&gt;Month=&lt;/STRONG&gt;,MonthNum={"$(=Max(MonthNum)-1)"}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Feb 2016 17:10:39 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-02-05T17:10:39Z</dc:date>
    <item>
      <title>If sheet filtered by month, one chart should be filtering that month -1</title>
      <link>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012824#M15007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sheet where I have 2 pie charts and a big filter pane at the top with "Month" selection.&lt;/P&gt;&lt;P&gt;If I hit November in the filter, both charts will filter November. I need to be able to make a comparison with the previous month.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, if I filter November, the other chart should be showing October.&lt;/P&gt;&lt;P&gt;If August selecter, the other chart should be showing July, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Mes" is Month in spanish.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113008_Untitled.png" style="height: 456px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 14:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012824#M15007</guid>
      <dc:creator>patriciousa</dc:creator>
      <dc:date>2016-01-29T14:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: If sheet filtered by month, one chart should be filtering that month -1</title>
      <link>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012825#M15008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a numeric month field in the script: num(Month(MyDate)) as MonthNum. Then try changing the expression of the 'Previous Month' chart by adding a set selector to it. For example Sum(Amount) becomes Sum({&amp;lt;MonthNum={"$(=Max(MonthNum)-1)"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you also need to cross year boundaries then try using a date field:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MyDate={"&amp;gt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;=MonthStart(Max(MyDate),-1)&lt;/SPAN&gt;)&amp;lt;$(=MonthStart(Max(MyDate)))"}&amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012825#M15008</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-29T17:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: If sheet filtered by month, one chart should be filtering that month -1</title>
      <link>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012826#M15009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert. Thank you for your help but can you be a little bit more clear? I'm new to Qlik and scripts, strings, related stuff.&lt;/P&gt;&lt;P&gt;Everything I have achieved so far is thanks to this community and guides.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My month filter exists thank to this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;DECLARE FIELD DEFINITION TAGGED '$date'&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;first_month_of_year = 1&lt;/P&gt;&lt;P&gt;Fields&lt;/P&gt;&lt;P&gt;Year($1) As Year Tagged '$year',&lt;/P&gt;&lt;P&gt;Month($1) as Month Tagged '$month',&lt;/P&gt;&lt;P&gt;Date($1) as Date Tagged ('$date', '$day'),&lt;/P&gt;&lt;P&gt;Week($1) as Week Tagged '$week',&lt;/P&gt;&lt;P&gt;Weekday($1) as Weekday Tagged '$weekday',&lt;/P&gt;&lt;P&gt;DayNumberOfYear($1, first_month_of_year) as DayNumberOfYear Tagged ('$numeric');&lt;/P&gt;&lt;P&gt;DERIVE FIELDS FROM FIELDS "Fecha Registro" USING Calendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is letting me filter by any month, day, week, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the scripts you gave me, no errors but they are doing nothing. I believe I don't even know where is the right place to paste them....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much again.&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012826#M15009</guid>
      <dc:creator>patriciousa</dc:creator>
      <dc:date>2016-01-29T17:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: If sheet filtered by month, one chart should be filtering that month -1</title>
      <link>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012827#M15010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Add a line to the calendar declaration to create a new MontNum field:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Calendar:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DECLARE FIELD DEFINITION TAGGED '$date'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Parameters&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;first_month_of_year = 1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Fields&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year($1) As Year Tagged '$year',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Month($1) as Month Tagged '$month',&lt;/P&gt;&lt;P style="font-size: 13px; 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; font-size: 13px;"&gt;&lt;STRONG&gt;Num(Month($1)) as MonthNum Tagged '$month',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date($1) as Date Tagged ('$date', '$day'),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Week($1) as Week Tagged '$week',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Weekday($1) as Weekday Tagged '$weekday',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DayNumberOfYear($1, first_month_of_year) as DayNumberOfYear Tagged ('$numeric');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DERIVE FIELDS FROM FIELDS "Fecha Registro" USING Calendar;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 18:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012827#M15010</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-29T18:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: If sheet filtered by month, one chart should be filtering that month -1</title>
      <link>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012828#M15011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first Pie is Sum(Amount)&lt;/P&gt;&lt;P&gt;The second one, the one that is suppose to show the previous month when using the top month filter, is still showing the same results as the other pie.&lt;/P&gt;&lt;P&gt;The expression of the second pie is the one you told me:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;MonthNum={"$(=Max(MonthNum)-1)"}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012828#M15011</guid>
      <dc:creator>patriciousa</dc:creator>
      <dc:date>2016-02-05T01:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: If sheet filtered by month, one chart should be filtering that month -1</title>
      <link>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012829#M15012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you make a selection in the Month field then you also need to overrule that selection:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;&lt;STRONG&gt;Month=&lt;/STRONG&gt;,MonthNum={"$(=Max(MonthNum)-1)"}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 17:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-sheet-filtered-by-month-one-chart-should-be-filtering-that/m-p/1012829#M15012</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-05T17:10:39Z</dc:date>
    </item>
  </channel>
</rss>

