<?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: Issue with a set expression into a If function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-a-set-expression-into-a-If-function/m-p/551623#M206044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 14:48:05 GMT</pubDate>
    <dc:creator>javier_florian</dc:creator>
    <dc:date>2013-10-31T14:48:05Z</dc:date>
    <item>
      <title>Issue with a set expression into a If function</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-a-set-expression-into-a-If-function/m-p/551621#M206042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows why the second expression doesn't work? The app have a filter in front-user to select monetary values or quantity and we show a graph with the follow expressions in the last two months:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values: =Sum({&amp;lt;Mes={"&amp;gt;=$(=Num(Max(Mes))-1)&amp;lt;=$(=Num(Max(Mes)))"}&amp;gt;} Emisiones.ValorPrimaNeta)/Millones&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quantity: &lt;SPAN style="text-decoration: underline;"&gt;=If(Productos.Emite_doble_certificado='Si', Count({&amp;lt;Mes={"&amp;gt;=$(=Num(Max(Mes))-1)&amp;lt;=$(=Num(Max(Mes)))"}&amp;gt;} Distinct Emisiones.Certificado)/2, Count({&amp;lt;Mes={"&amp;gt;=$(=Num(Max(Mes))-1)&amp;lt;=$(=Num(Max(Mes)))"}&amp;gt;} Distinct Emisiones.Certificado))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With values I don't have any problem... but with quantity @#!"!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Javier Florián&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 19:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-a-set-expression-into-a-If-function/m-p/551621#M206042</guid>
      <dc:creator>javier_florian</dc:creator>
      <dc:date>2013-10-30T19:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with a set expression into a If function</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-a-set-expression-into-a-If-function/m-p/551622#M206043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see any problems with the expression itself, except I'd write it shorter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Mes={"&amp;gt;=$(=Num(Max(Mes))-1)&amp;lt;=$(=Num(Max(Mes)))"}&amp;gt;} Distinct Emisiones.Certificado)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;If(Productos.Emite_doble_certificado='Si', 2, 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make sure, try only this part, see if it works&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Mes={"&amp;gt;=$(=Num(Max(Mes))-1)&amp;lt;=$(=Num(Max(Mes)))"}&amp;gt;} Distinct Emisiones.Certificado)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the problem is with the data, not with expression(?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 19:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-a-set-expression-into-a-If-function/m-p/551622#M206043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-30T19:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with a set expression into a If function</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-a-set-expression-into-a-If-function/m-p/551623#M206044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 14:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-a-set-expression-into-a-If-function/m-p/551623#M206044</guid>
      <dc:creator>javier_florian</dc:creator>
      <dc:date>2013-10-31T14:48:05Z</dc:date>
    </item>
  </channel>
</rss>

