<?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 in set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054602#M932843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MY is MonthYear field and you are equating it to just a Year which is never going to work. You will have to equate it either to a year field or a range of YearStart to YearEnd in the MMM-YYYY format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 21:00:15 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-29T21:00:15Z</dc:date>
    <item>
      <title>Issue in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054601#M932842</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;The following expression returns 222037 which is right.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Forecast Metric]={"Orig Loans/Advances # - New","Orig Loans/Advances # - Repeat"},[Report Month]={"$(=Date(YearStart([Report Month]),'MMM YYYY'))"}&amp;gt;}[Forecast Values2])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add one more condition to my set expression&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Forecast Metric]={"Orig Loans/Advances # - New","Orig Loans/Advances # - Repeat"},[Report Month]={"$(=Date(YearStart([Report Month]),'MMM YYYY'))"},MY={"$(=Year(Max({&amp;lt;Flag={'1'}&amp;gt;}MY)))"}&amp;gt;}[Forecast Values2])&lt;/P&gt;&lt;P&gt;After adding the condition, I'm getting '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried reading value of &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Year(Max({&amp;lt;Flag={'1'}&amp;gt;}MY)), it's 2016 which is also right.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;My original expression with all the 2016 months in MY selected returns, 124185 which is right.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can someone help me with this expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=sum({&amp;lt;[Forecast Metric]={"Orig Loans/Advances # - New","Orig Loans/Advances # - Repeat"},[Report Month]={"$(=Date(YearStart([Report Month]),'MMM YYYY'))"},&lt;SPAN style="text-decoration: underline;"&gt;MY={"$(=Year(Max({&amp;lt;Flag={'1'}&amp;gt;}MY)))"}&lt;/SPAN&gt;&amp;gt;}[Forecast Values2])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I'm having issue with the underlined part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Adi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 20:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054601#M932842</guid>
      <dc:creator />
      <dc:date>2016-02-29T20:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054602#M932843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MY is MonthYear field and you are equating it to just a Year which is never going to work. You will have to equate it either to a year field or a range of YearStart to YearEnd in the MMM-YYYY format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054602#M932843</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T21:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054603#M932844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to assign a year value to a field that hold month-year values, so the values are not compatible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Forecast Metric]={"Orig Loans/Advances # - New","Orig Loans/Advances # - Repeat"},[Report Month]={"$(=Date(YearStart([Report Month]),'MMM YYYY'))"},MY={"*-$(=Year(Max({&amp;lt;Flag={'1'}&amp;gt;}MY)))"}&amp;gt;}[Forecast Values2])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054603#M932844</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-29T21:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054604#M932845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Sum({&amp;lt;[Forecast Metric]={"Orig Loans/Advances # - New","Orig Loans/Advances # - Repeat"},[Report Month]={"$(=Date(YearStart([Report Month]),'MMM YYYY'))"},&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; text-decoration: underline; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MY={"$(='&amp;gt;' &amp;amp; Date(YearStart(Max({&amp;lt;Flag={'1'}&amp;gt;}MY)), 'MMM-YYYY') &amp;amp; '&amp;lt;=' &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; text-decoration: underline;"&gt;Date(YearEnd(Max({&amp;lt;Flag={'1'}&amp;gt;}MY)), 'MMM-YYYY'))&lt;/SPAN&gt;"}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;gt;}[Forecast Values2])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054604#M932845</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T21:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054605#M932846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked but I see 114804 instead of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;124185.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054605#M932846</guid>
      <dc:creator />
      <dc:date>2016-02-29T21:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054606#M932847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use a 'larger equal' in the first part of the search expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-family: Helvetica; text-decoration: underline;"&gt;MY={"$(='&amp;gt;=' &amp;amp; Date(YearStart(Max({&amp;lt;Flag={'1'}&amp;gt;}MY)), 'MMM-YYYY')...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-family: Helvetica; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-family: Helvetica; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Or try the wildcard search I've suggested above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054606#M932847</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-29T21:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054607#M932848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya I think I missed the &amp;gt;= in my first expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054607#M932848</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T21:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054608#M932849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess as Stefan pointed out, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;=Sum({&amp;lt;[Forecast Metric]={"Orig Loans/Advances # - New","Orig Loans/Advances # - Repeat"},[Report Month]={"$(=Date(YearStart([Report Month]),'MMM YYYY'))"},&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;MY={"$(='&amp;gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;=&lt;/SPAN&gt;' &amp;amp; Date(YearStart(Max({&amp;lt;Flag={'1'}&amp;gt;}MY)), 'MMM-YYYY') &amp;amp; '&amp;lt;=' &amp;amp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;Date(YearEnd(Max({&amp;lt;Flag={'1'}&amp;gt;}MY)), 'MMM-YYYY'))&lt;/SPAN&gt;"}&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;gt;}[Forecast Values2])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054608#M932849</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T21:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054609#M932850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan, it worked. Thanks a ton.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-set-expression/m-p/1054609#M932850</guid>
      <dc:creator />
      <dc:date>2016-02-29T21:43:30Z</dc:date>
    </item>
  </channel>
</rss>

