<?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 / quarter conditionality in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-quarter-conditionality/m-p/1796756#M1211331</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m trying to dynamically get forecast data for &lt;EM&gt;all months after next quarter&lt;/EM&gt;, with previous month as standpoint.&lt;/P&gt;&lt;P&gt;E.g. now, previous month was in Q1, hence I would want data for YearMonth 202107 forward.&lt;/P&gt;&lt;P&gt;Feels like I need some conditionality here but I don’t know how to do that in this syntax, i.e.:&lt;/P&gt;&lt;P&gt;if Month(Today()) is 2, 3 or 4 then return summed months from current year month 7 forward&lt;/P&gt;&lt;P&gt;if Month(Today()) is 5, 6 or 7 then return summed months from current year month 10 forward&lt;/P&gt;&lt;P&gt;if Month(Today()) is 8, 9 or 10 then return summed months from next year month 1 forward&lt;/P&gt;&lt;P&gt;if Month(Today()) is 11, 12 or 1 then return summed months from next year month 4 forward&lt;/P&gt;&lt;P&gt;I have fields Quarter and YearQuarter like (Q1, Q2, Q3, Q4) and (2021Q1, 2021Q2…) but I don’t think I can use Date(Today()) with those? I mean something like:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;YearMonth ={"&amp;gt;=$(=YearQuarter(Date(Today(),'YYYYMM')-1)+2)"},&amp;gt;}kWh)/Volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;</description>
    <pubDate>Sun, 04 Apr 2021 12:35:05 GMT</pubDate>
    <dc:creator>RobinB1</dc:creator>
    <dc:date>2021-04-04T12:35:05Z</dc:date>
    <item>
      <title>Set Analysis Expression / quarter conditionality</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-quarter-conditionality/m-p/1796756#M1211331</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m trying to dynamically get forecast data for &lt;EM&gt;all months after next quarter&lt;/EM&gt;, with previous month as standpoint.&lt;/P&gt;&lt;P&gt;E.g. now, previous month was in Q1, hence I would want data for YearMonth 202107 forward.&lt;/P&gt;&lt;P&gt;Feels like I need some conditionality here but I don’t know how to do that in this syntax, i.e.:&lt;/P&gt;&lt;P&gt;if Month(Today()) is 2, 3 or 4 then return summed months from current year month 7 forward&lt;/P&gt;&lt;P&gt;if Month(Today()) is 5, 6 or 7 then return summed months from current year month 10 forward&lt;/P&gt;&lt;P&gt;if Month(Today()) is 8, 9 or 10 then return summed months from next year month 1 forward&lt;/P&gt;&lt;P&gt;if Month(Today()) is 11, 12 or 1 then return summed months from next year month 4 forward&lt;/P&gt;&lt;P&gt;I have fields Quarter and YearQuarter like (Q1, Q2, Q3, Q4) and (2021Q1, 2021Q2…) but I don’t think I can use Date(Today()) with those? I mean something like:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;YearMonth ={"&amp;gt;=$(=YearQuarter(Date(Today(),'YYYYMM')-1)+2)"},&amp;gt;}kWh)/Volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 12:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-quarter-conditionality/m-p/1796756#M1211331</guid>
      <dc:creator>RobinB1</dc:creator>
      <dc:date>2021-04-04T12:35:05Z</dc:date>
    </item>
  </channel>
</rss>

