<?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 Set analysis and current selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269993#M101237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button that I've configured in this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=Date( Max( {1&amp;lt;Compteur = {$(#=Only(Compteur))}&amp;gt;} Date ) )&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked the QV Help and the syntax seems to be fine. One detail, Compteur contains text eg. : "Disjoncteur Général"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody has any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;IMG alt="set_analysis_1.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5111_set_analysis_1.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 13:50:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-07T13:50:28Z</dc:date>
    <item>
      <title>Set analysis and current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269993#M101237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button that I've configured in this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=Date( Max( {1&amp;lt;Compteur = {$(#=Only(Compteur))}&amp;gt;} Date ) )&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked the QV Help and the syntax seems to be fine. One detail, Compteur contains text eg. : "Disjoncteur Général"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody has any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;IMG alt="set_analysis_1.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5111_set_analysis_1.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 13:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269993#M101237</guid>
      <dc:creator />
      <dc:date>2011-06-07T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269994#M101238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I think the problem is that Compteur is a string field and you are trying to cast the string to a number by using $(#=) the pound sign before the equal sign, hence the expression should work written like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;=Date( Max( {1&amp;lt;Compteur = {'$(=Only(Compteur))'}&amp;gt;} Date ) )&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also rembember, the only function will return a value in the case that only one value is possible, otherwise it will return null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 14:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269994#M101238</guid>
      <dc:creator />
      <dc:date>2011-06-07T14:01:33Z</dc:date>
    </item>
    <item>
      <title>Set analysis and current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269995#M101239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it work outside that search string box? In a text box for example?&lt;/P&gt;&lt;P&gt;You probably need quotes around the compteur: &lt;/P&gt;&lt;P&gt;=Date( Max( {1&amp;lt;Compteur = {'$(#=Only(Compteur))'}&amp;gt;} Date ) )&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;=Date( Max( {1&amp;lt;Compteur = {"$(#=Only(Compteur))"}&amp;gt;} Date ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 14:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269995#M101239</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-07T14:02:05Z</dc:date>
    </item>
    <item>
      <title>Set analysis and current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269996#M101240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ivan and Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works when I combined what you told me (without # and with " "):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date( Max( {1&amp;lt;Compteur = {"$(=Only(Compteur))"}&amp;gt;} Date ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank again guys !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 14:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269996#M101240</guid>
      <dc:creator />
      <dc:date>2011-06-07T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Set analysis and current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269997#M101241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy, just as a small suggestion, avoid using double quotes when possible, since it will invoke the qv search engine and it might have some performance implications. I always use single quotes, when I am filtering by a literal field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 15:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269997#M101241</guid>
      <dc:creator />
      <dc:date>2011-06-07T15:32:17Z</dc:date>
    </item>
    <item>
      <title>Set analysis and current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269998#M101242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know that Ivan!&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 15:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-selection/m-p/269998#M101242</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-07T15:35:16Z</dc:date>
    </item>
  </channel>
</rss>

