<?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 nohting selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843738#M998953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I tried this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;getselectedcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthSerial&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Max(MonthSerial)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(Interval(6,12))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;))),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(Interval(6,12))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does not work.&amp;nbsp; It should be able to translate from year to monthserial?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 12:47:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-17T12:47:24Z</dc:date>
    <item>
      <title>if nothing selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843733#M998946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable with two parameters, e.g. use 6 and 12 month back, and I use MonthSerial (you know max bla bla, I dont think it matters for this).&lt;/P&gt;&lt;P&gt;When I select in eg a year in the master calendar it works fine, but when all is clear, it does not know from where to count.&lt;/P&gt;&lt;P&gt;So I need to tell it that when nothing is selected take the max year.&lt;/P&gt;&lt;P&gt;What is the easiest way do to this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843733#M998946</guid>
      <dc:creator />
      <dc:date>2015-06-17T12:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843734#M998947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would the &lt;EM&gt;GetPossibleCount()&lt;/EM&gt; function help you ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843734#M998947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T12:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843735#M998948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the getselectedcount() function to know if a field is selected so write something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(getselectedcount(myField)=0, Max(myField), getselectedfield(myField))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843735#M998948</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-17T12:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843736#M998949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I assume the max() function will also be your friend here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why don't you just post your variable definition and other relevant information, this would make it much easier to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843736#M998949</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-17T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843737#M998951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would used Max(Year) regardless of selection or no selection, because when there is no selection made it will choose the maximum year and when a selection is made it will choose the max from the available years. (Unless you don't want the max year when a selection is made, Max(Year) should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843737#M998951</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-17T12:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843738#M998953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I tried this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;getselectedcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthSerial&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Max(MonthSerial)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(Interval(6,12))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;))),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(Interval(6,12))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does not work.&amp;nbsp; It should be able to translate from year to monthserial?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843738#M998953</guid>
      <dc:creator />
      <dc:date>2015-06-17T12:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843739#M998956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx but I think getselectedcount() is better as suggested?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843739#M998956</guid>
      <dc:creator />
      <dc:date>2015-06-17T12:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843740#M998958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the definition of variable Interval(x,y)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like you included it into an aggregation, which will not work if it's an aggregation itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843740#M998958</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-17T12:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843741#M998960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm, well yes that is probaly true, it works when I select.&lt;/P&gt;&lt;P&gt;The varaible is longer, I cannot show all, but it starts like this: ...&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthSerial&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max(MonthSerial)-$1)&amp;gt;=$(=Max(MonthSerial)-$2)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so there you have the parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843741#M998960</guid>
      <dc:creator />
      <dc:date>2015-06-17T13:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843742#M998962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, there you go. Embedding an aggregation function within an aggregation function will not work (in general, e.g without using advanced aggregation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you cleared all selection, what does your variable return? I would assume it's still working beacuse you are applying a ranges selection for MonthSerial based on Max(MonthSerial).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843742#M998962</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-17T13:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843743#M998964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks and yes that is the problem, it only works when I select, as it is told to take max from selected (eg year) and then calculate (I assume).&lt;/P&gt;&lt;P&gt;So I "just" need to say when no select, take max year of all possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843743#M998964</guid>
      <dc:creator />
      <dc:date>2015-06-17T13:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843744#M998966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843744#M998966</guid>
      <dc:creator />
      <dc:date>2015-06-17T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843745#M998968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, why not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want more detailed help, you would need to post more complete data.&lt;/P&gt;&lt;P&gt;I can't tell what the issue from what you've posted so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could post a small sample QVW, this would be best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843745#M998968</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-17T15:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843746#M998970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(year) u can use&lt;/P&gt;&lt;P&gt;or else u want to display last selected year&lt;/P&gt;&lt;P&gt;u chk the always one selected value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it wil gves u last selected year wen open the qvw.&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 03:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843746#M998970</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2015-06-18T03:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: if nohting selected</title>
      <link>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843747#M998972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I believe the problem was that there is not enough data, that is why it was not showing anything, so my diagnose was wrong, I appologize.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 07:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nothing-selected/m-p/843747#M998972</guid>
      <dc:creator />
      <dc:date>2015-06-24T07:51:05Z</dc:date>
    </item>
  </channel>
</rss>

