<?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 Select year and month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-year-and-month/m-p/221981#M74730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response, but you do not understand, for the year really need to get the current, but for months, as the base is not updated constantly, I need to catch the last months that have data. For example, the current month is July where we are, but based on last month is May.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 13:51:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-13T13:51:54Z</dc:date>
    <item>
      <title>Select year and month</title>
      <link>https://community.qlik.com/t5/QlikView/Select-year-and-month/m-p/221979#M74728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN closure_uid_d0ltsw="93" style="background-color: #fff;" tc="Alguém poderia me ajudar, estou tentando fazer uma ação para selecionar o ano corrente eo útimo mês que contém dados do ano correspondente." uc="Could anyone help me, I'm trying to do an action to select the current year and the very last month that contains data from the corresponding year."&gt;Could anyone help me, I'm trying to do an action to select the current year and the very last month that contains data from the corresponding year.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt; I thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 12:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-year-and-month/m-p/221979#M74728</guid>
      <dc:creator />
      <dc:date>2010-07-13T12:48:24Z</dc:date>
    </item>
    <item>
      <title>Select year and month</title>
      <link>https://community.qlik.com/t5/QlikView/Select-year-and-month/m-p/221980#M74729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use below Expressions :&lt;/P&gt;&lt;P&gt;Set Analysis :&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt; Year_Cost = {$(#=Year(today())-1),$(#=Year(today()))} , Month_Cost = {$(=Month(AddMonths(Today(),-1)))} &amp;gt;} Value)&lt;/P&gt;&lt;P&gt;General Condition:&lt;/P&gt;&lt;P&gt;=Sum(&lt;BR /&gt; if(Month(Date) = Month(today())-1&lt;BR /&gt; and&lt;BR /&gt; (Year(Date) = Year(today()) or Year(Date) = Year(today())-1),&lt;BR /&gt; Value))&lt;/P&gt;&lt;P&gt;Both the expressions provide result for previous month and Current , Previous Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 13:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-year-and-month/m-p/221980#M74729</guid>
      <dc:creator />
      <dc:date>2010-07-13T13:43:36Z</dc:date>
    </item>
    <item>
      <title>Select year and month</title>
      <link>https://community.qlik.com/t5/QlikView/Select-year-and-month/m-p/221981#M74730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response, but you do not understand, for the year really need to get the current, but for months, as the base is not updated constantly, I need to catch the last months that have data. For example, the current month is July where we are, but based on last month is May.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 13:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-year-and-month/m-p/221981#M74730</guid>
      <dc:creator />
      <dc:date>2010-07-13T13:51:54Z</dc:date>
    </item>
    <item>
      <title>Select year and month</title>
      <link>https://community.qlik.com/t5/QlikView/Select-year-and-month/m-p/221982#M74731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a button with two "Select in Field" actions in it for Year and Month fields from your Calendar table.&lt;/P&gt;&lt;P&gt;For Year field use this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=year(today())&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;For Month field use this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=month(addmonths(yearstart(today()) , (max({1 &amp;lt;Year={"$(=year(today()))"}&amp;gt;} Month) - 1)))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Take a look at an example from attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 13:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-year-and-month/m-p/221982#M74731</guid>
      <dc:creator />
      <dc:date>2010-07-13T13:51:56Z</dc:date>
    </item>
  </channel>
</rss>

