<?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 GetCurrentSelections() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891916#M654128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an IF() that will return a value when a field within a group is selected. So I have something along the lines of whats below. However, the function is returning Sum(Sales) when any field in Annual Analysis is selected, not just 2015 YTD like I want. Any suggestions? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&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;GetCurrentSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Annual Analysis]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = '2015 YTD', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 17:00:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-06T17:00:56Z</dc:date>
    <item>
      <title>GetCurrentSelections()</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891916#M654128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an IF() that will return a value when a field within a group is selected. So I have something along the lines of whats below. However, the function is returning Sum(Sales) when any field in Annual Analysis is selected, not just 2015 YTD like I want. Any suggestions? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&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;GetCurrentSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Annual Analysis]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = '2015 YTD', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891916#M654128</guid>
      <dc:creator />
      <dc:date>2015-07-06T17:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentSelections()</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891917#M654129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(WildMatch(GetFieldSelections([Annual Analysis]), '2015 YTD'), Sum(Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891917#M654129</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-06T17:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentSelections()</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891918#M654131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that worked! how does WildMatch work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891918#M654131</guid>
      <dc:creator />
      <dc:date>2015-07-06T17:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentSelections()</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891919#M654132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If You haveDimension [Annual Analysis] in Your Group try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(GetCurrentField(YourGroup)='Annual Analysis',Sum({&amp;lt;[Annual Analysis]={'2015 YTD'}&amp;gt;} Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891919#M654132</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-07-06T17:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentSelections()</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891920#M654133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure what you are doing and how you data looks. if what &lt;A _jive_internal="true" href="https://community.qlik.com/people/AntonioTiman"&gt;ANTONIO&lt;/A&gt;‌ said did not work, would you be able to share a sample?&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>Mon, 06 Jul 2015 17:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891920#M654133</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-06T17:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentSelections()</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891921#M654134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I spoke too soon, &lt;STRONG&gt;=If(WildMatch(GetFieldSelections([Annual Analysis]), '2015 YTD'), Sum(Sales))&lt;/STRONG&gt; worked. How does WildMatch work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891921#M654134</guid>
      <dc:creator />
      <dc:date>2015-07-06T17:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentSelections()</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891922#M654136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an image from QV Help page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91992_Capture.PNG" style="height: 207px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will clarify things.&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>Mon, 06 Jul 2015 17:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentSelections/m-p/891922#M654136</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-06T17:25:11Z</dc:date>
    </item>
  </channel>
</rss>

