<?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 Macro - find MonthName current selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227410#M79521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) =getSelectedCount(MonthName)&lt;/P&gt;&lt;P&gt;You shouldn't even need to say &amp;gt;0, because 0 is false, and anything else is true.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2009 03:04:32 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-10-29T03:04:32Z</dc:date>
    <item>
      <title>Macro - find MonthName current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227409#M79520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to accomplish 1 of 2 things in a Qlikview document:&lt;/P&gt;&lt;P&gt;1) On a chart I would like a &lt;B&gt;Calculation Condition&lt;/B&gt; that find the number of MonthName items that are &lt;B&gt;selected&lt;/B&gt;. And if there is at least 1 selection then it should display the chart. I have so far:&lt;/P&gt;&lt;P&gt;=Count(distinct[MonthName])&amp;gt;0&lt;/P&gt;&lt;P&gt;However this just reads what MonthName items are &lt;B&gt;available&lt;/B&gt; with the other current selections, not what MonthName items are &lt;B&gt;selected.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;B&gt;OR&lt;/B&gt;&lt;/P&gt;&lt;P&gt;2) I would like the opening Macro of the sheet to know find what MonthName items are selected. If none are selected, then to select "Jan" or all months that are available. If one MonthName is selected then to do nothing.&lt;/P&gt;&lt;P&gt;I hope somebody can help me with one of them&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 02:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227409#M79520</guid>
      <dc:creator />
      <dc:date>2009-10-29T02:20:55Z</dc:date>
    </item>
    <item>
      <title>Macro - find MonthName current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227410#M79521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) =getSelectedCount(MonthName)&lt;/P&gt;&lt;P&gt;You shouldn't even need to say &amp;gt;0, because 0 is false, and anything else is true.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 03:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227410#M79521</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-10-29T03:04:32Z</dc:date>
    </item>
    <item>
      <title>Macro - find MonthName current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227411#M79522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John, that works! Anybody know how to do #2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 22:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227411#M79522</guid>
      <dc:creator />
      <dc:date>2009-10-29T22:15:12Z</dc:date>
    </item>
    <item>
      <title>Macro - find MonthName current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227412#M79523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this (untested):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sub DefaultJan()&lt;BR /&gt; set field = ActiveDocument.getField("MonthName")&lt;BR /&gt; if field.getSelectedValues.Count &amp;lt; 1 then&lt;BR /&gt; field.select "Jan"&lt;BR /&gt; end if&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 23:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227412#M79523</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-10-29T23:15:35Z</dc:date>
    </item>
    <item>
      <title>Macro - find MonthName current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227413#M79524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works great. Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 23:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-find-MonthName-current-selections/m-p/227413#M79524</guid>
      <dc:creator />
      <dc:date>2009-10-29T23:26:55Z</dc:date>
    </item>
  </channel>
</rss>

