<?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 based on date selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-date-selection/m-p/1530708#M438721</link>
    <description>&lt;P&gt;Hi , I am trying to sum up monthly figures, based on list-box selection.&lt;/P&gt;&lt;P&gt;This is the expression i used :&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;DT_MONTHYEAR ={"&amp;gt;=$(=Date(max([DT_MONTHYEAR])))"}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;This one works fine , but unable to write and expression to give AMOUNT sum for previous MonthYear(previous to the one currently selected)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:45:03 GMT</pubDate>
    <dc:creator>swatiras</dc:creator>
    <dc:date>2024-11-16T04:45:03Z</dc:date>
    <item>
      <title>Set analysis based on date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-date-selection/m-p/1530708#M438721</link>
      <description>&lt;P&gt;Hi , I am trying to sum up monthly figures, based on list-box selection.&lt;/P&gt;&lt;P&gt;This is the expression i used :&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;DT_MONTHYEAR ={"&amp;gt;=$(=Date(max([DT_MONTHYEAR])))"}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;This one works fine , but unable to write and expression to give AMOUNT sum for previous MonthYear(previous to the one currently selected)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-date-selection/m-p/1530708#M438721</guid>
      <dc:creator>swatiras</dc:creator>
      <dc:date>2024-11-16T04:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis based on date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-date-selection/m-p/1530714#M438722</link>
      <description>&lt;P&gt;Hi Try this:&lt;/P&gt;&lt;P&gt;Assuming you have a Year field in your data model.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Sum({$&amp;lt;DT_MONTHYEAR ={"&amp;gt;=$(=Date(max([DT_MONTHYEAR])))"},Year&amp;nbsp;={"=$(=Year(max([DT_MONTHYEAR]))-1)"}&amp;gt;}AMOUNT)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 06:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-date-selection/m-p/1530714#M438722</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2019-01-16T06:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis based on date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-date-selection/m-p/1530716#M438723</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;&lt;PRE&gt;=Sum({$&amp;lt;DT_MONTHYEAR ={"&amp;gt;=$(=AddMonths(Max([DT_MONTHYEAR]), -1))"}&amp;gt;} AMOUNT)&lt;/PRE&gt;&lt;P&gt;You may need to override selections if you are making date selections in another field. Example:&lt;/P&gt;&lt;PRE&gt;=Sum({$&amp;lt;DT_MONTHYEAR ={"&amp;gt;=$(=AddMonths(Max([DT_MONTHYEAR]), -1))"}, &lt;STRONG&gt;Year&lt;/STRONG&gt;, &lt;STRONG&gt;Month&lt;/STRONG&gt;&amp;gt;} AMOUNT)&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Jan 2019 06:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-date-selection/m-p/1530716#M438723</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-01-16T06:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis based on date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-date-selection/m-p/1531330#M438756</link>
      <description>&lt;P&gt;Another issue :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say i want to find out the average based upon the number of days in the month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a set analysis expression like :&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;MONTHYEAR ={"&amp;gt;=$(=Date(max([MONTHYEAR])))"}&amp;gt;}AMOUNT)/divide by the number of days in the &lt;SPAN&gt;MONTHYEAR&amp;nbsp;&lt;/SPAN&gt;selected in the '&lt;SPAN&gt;MONTHYEAR&lt;/SPAN&gt;' listbox&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 05:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-date-selection/m-p/1531330#M438756</guid>
      <dc:creator>swatiras</dc:creator>
      <dc:date>2019-01-17T05:02:52Z</dc:date>
    </item>
  </channel>
</rss>

