<?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: variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable/m-p/475181#M177404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks thanks!!!!!!!!&lt;/P&gt;&lt;P&gt;it's right!!!!!!!&lt;/P&gt;&lt;P&gt;thanks you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Jun 2013 18:06:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-15T18:06:51Z</dc:date>
    <item>
      <title>variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/475176#M177399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created two variable:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Month1: it is current month&lt;/LI&gt;&lt;LI&gt;Month2: it is descrive a specific month&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Month1= &lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Text&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;PER_RIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)))&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Text&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;PER_RIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Month2=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt; Text&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;PER_RIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;-1)))&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Text&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;PER_RIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;-1))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to do some sum.&lt;/P&gt;&lt;P&gt;I try to use:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;per_rif&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12.0pt; font-family: 'Courier New';"&gt;$(date(Month1))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Incassato_Altro _nel _periodo]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But when I try to set the sum it fails.&lt;/P&gt;&lt;P&gt;I can’t selection nothing because I want to automatizaren all things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Am I doing wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 15:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/475176#M177399</guid>
      <dc:creator />
      <dc:date>2013-06-15T15:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/475177#M177400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your set analysis is incorrect, but also I suspect your variables are wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According yo your variables, you get the month and the year from the same field: PER_RIF. Does PER_RIF has date values? If it's so... then you could do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;{&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;PER_RIF&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 12pt; background-color: #ffffff; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;"&amp;gt;=$(=MonthStart(Max(PER_RIF)))&amp;lt;=$&lt;SPAN style="color: #808080; font-family: 'Courier New'; font-size: 16.363636016845703px; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;EM&gt;(=MonthEnd(Max(PER_RIF)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;[Incassato_Altro _nel _periodo]&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would give you the sum of [Incassato_Altro _nel _periodo] values for the max MonthYear selected or available (the 30 or 31 days included in the Month).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this example from Steve Dark may hel you a lot to learn about playing with Dates in Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/docs/DOC-4313"&gt;http://community.qlik.com/docs/DOC-4313&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 17:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/475177#M177400</guid>
      <dc:creator />
      <dc:date>2013-06-15T17:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/475178#M177401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;thanks for the reply. But if I use your script in my object the result is: "-".&lt;/P&gt;&lt;P&gt;The PER_RIF field has a date value. I read your suggestion article by Steve Dark but i don't understand where i need to use that script in my own one. Follow a screenshot that i hope will help you to better understant my issue.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42751" class="jive-image-thumbnail jive-image" onclick="" alt="screenshot.jpg" src="https://community.qlik.com/legacyfs/online/42751_screenshot.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 17:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/475178#M177401</guid>
      <dc:creator />
      <dc:date>2013-06-15T17:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/475179#M177402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your curly brackets (i.e. { and } )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you have put one opening curly bracket too much into your expression directly before the field name PER_RIF. Remove this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 18:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/475179#M177402</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-15T18:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/475180#M177403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I forgot to erase some characters from your formula that were wrong... try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;PER_RIF&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; color: #808080; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;"&amp;gt;=$(=MonthStart(Max(PER_RIF)))&amp;lt;=$&lt;STRONG&gt;&lt;EM&gt;(=MonthEnd(Max(PER_RIF)))&lt;/EM&gt;&lt;/STRONG&gt;"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;[Incassato_Altro _nel _periodo]&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 18:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/475180#M177403</guid>
      <dc:creator />
      <dc:date>2013-06-15T18:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/475181#M177404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks thanks!!!!!!!!&lt;/P&gt;&lt;P&gt;it's right!!!!!!!&lt;/P&gt;&lt;P&gt;thanks you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 18:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/475181#M177404</guid>
      <dc:creator />
      <dc:date>2013-06-15T18:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/475182#M177405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's right!!!!!!!&lt;/P&gt;&lt;P&gt;thanks you!&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 18:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/475182#M177405</guid>
      <dc:creator />
      <dc:date>2013-06-15T18:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/475183#M177406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, sorry, I have the same problems but for precedetent month.&lt;/P&gt;&lt;P&gt;How can i do this?&lt;/P&gt;&lt;P&gt;My date are simililar of ciroscar's date.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 07:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/475183#M177406</guid>
      <dc:creator />
      <dc:date>2013-06-16T07:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/475184#M177407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, I'm finding solution in article by Steve Dark.&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 08:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/475184#M177407</guid>
      <dc:creator />
      <dc:date>2013-06-16T08:39:08Z</dc:date>
    </item>
  </channel>
</rss>

