<?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: Help with Embedded Function - Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55644#M9249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to look more into this, we've just upgraded to 12.2 and the function I was using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;CreatedDate={'=today()'}&amp;gt;}[WeekPeriod])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is no longer working, although I've been testing with this all morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll post an update later today&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2018 12:06:44 GMT</pubDate>
    <dc:creator>chris1987</dc:creator>
    <dc:date>2018-03-20T12:06:44Z</dc:date>
    <item>
      <title>Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55638#M9243</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;I'm trying to use a function in set analysis without any luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function I'm trying to use is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;CreatedDate={'=today()'}&amp;gt;}[WeekPeriod])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which returns 201812 (as we're currently in week12 or year 2018)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to embed it in this function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[I_Txn-type]={'INV'},[WeekPeriod]={"=only({&amp;lt;CreatedDate={'=today()'}&amp;gt;}[WeekPeriod])"}&amp;gt;}[IL_Net-ext])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I don't get correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using single quotes and double quote - the [WeekPeriod]={"=only({&amp;lt;CreatedDate={'=today()'} is just getting ignored all together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55638#M9243</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-20T11:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55639#M9244</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;=Sum({&amp;lt;[I_Txn-type] = {'INV'}, [WeekPeriod] = {"$(=Only({&amp;lt;CreatedDate = {'$(=Today())'}&amp;gt;} [WeekPeriod]))"}&amp;gt;} [IL_Net-ext])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55639#M9244</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-20T11:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55640#M9245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, but unfortunately it's still the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55640#M9245</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-20T11:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55641#M9246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the problem? Can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55641#M9246</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-20T11:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55642#M9247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my expression, If I enter the WeekPeriod manually I get 189,442:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[I_Txn-type]={'INV'},[WeekPeriod]={'201812'}&amp;gt;}[IL_Net-ext])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I apply the ONLY() logic I get 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[I_Txn-type]={'INV'},[WeekPeriod]={"$(=Only({&amp;lt;CreatedDate = {'$(=Today())'}&amp;gt;} [WeekPeriod]))"}&amp;gt;}[IL_Net-ext])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and If I put =Only({&amp;lt;CreatedDate = {'$(=Today())'}&amp;gt;} [WeekPeriod])) into a text box I get 201812 so I know the formula is working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55642#M9247</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-20T11:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55643#M9248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not seeing any issue with the expression... can you try 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: 13px;"&gt;&lt;STRONG&gt;=Sum({&amp;lt;[I_Txn-type] = {'INV'}, [WeekPeriod] = {"$(=&lt;SPAN style="color: #ff0000;"&gt;MinString&lt;/SPAN&gt;({&amp;lt;CreatedDate = {'$(=Today())'}&amp;gt;} [WeekPeriod]))"}&amp;gt;} [IL_Net-ext])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55643#M9248</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-20T11:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55644#M9249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to look more into this, we've just upgraded to 12.2 and the function I was using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;CreatedDate={'=today()'}&amp;gt;}[WeekPeriod])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is no longer working, although I've been testing with this all morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll post an update later today&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55644#M9249</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-20T12:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55645#M9250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV12.20 is much stricter when handling single quotes and double quotes in Set Analysis expressions. Maybe that's the reason why it doesn't work anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the QlikView November 2017 Release notes here: &lt;A href="https://community.qlik.com/qlik-blogpost/5442"&gt;New November Releases - Read All About It Here!&lt;/A&gt; (page 3 - "Quotes in Set Analysis expressions")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55645#M9250</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-03-20T12:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55646#M9251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check if this works or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=MinString({&amp;lt;CreatedDate = {'$(=Today())'}&amp;gt;} [WeekPeriod])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=MinString({&amp;lt;CreatedDate = {'$(=Date(Today()))'}&amp;gt;} [WeekPeriod])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55646#M9251</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-20T12:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55647#M9252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This ended up working in the end (as you can see I changed to a numeric date ID) but you pointed me in the right direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[I_Txn-type]={'INV'},[WeekPeriod]={"=only({&amp;lt;DateID={'$(=num(today())-1)'}&amp;gt;}WeekPeriod)"}&amp;gt;}[IL_Net-ext])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55647#M9252</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-20T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55648#M9253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55648#M9253</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-20T13:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Embedded Function - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55649#M9254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter, that's really useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Embedded-Function-Set-Analysis/m-p/55649#M9254</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2018-03-20T13:47:22Z</dc:date>
    </item>
  </channel>
</rss>

