<?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: Set analysis syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590492#M218993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need simple quotes around your Num format: &lt;STRONG&gt;'00'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With this you second statement could work...&lt;/P&gt;&lt;P&gt;Is [Year Week] a number or a string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 18:40:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-30T18:40:10Z</dc:date>
    <item>
      <title>Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590491#M218992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have attempted the folllowing two statements without success;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Year Week] = weekyear(today()) &amp;amp; num(Week(today()),00),&lt;/P&gt;&lt;P&gt;sum({&amp;lt;%ArtKat = {93}&amp;gt;}OrderRad.NettoBelopp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;%ArtKat = {93},[Year Week] = {weekyear(today()) &amp;amp; num(Week(today()),00) }&amp;gt;}OrderRad.NettoBelopp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Bradley Coyne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 18:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590491#M218992</guid>
      <dc:creator />
      <dc:date>2014-01-30T18:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590492#M218993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need simple quotes around your Num format: &lt;STRONG&gt;'00'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With this you second statement could work...&lt;/P&gt;&lt;P&gt;Is [Year Week] a number or a string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 18:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590492#M218993</guid>
      <dc:creator />
      <dc:date>2014-01-30T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590493#M218994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;string&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 18:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590493#M218994</guid>
      <dc:creator />
      <dc:date>2014-01-30T18:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590494#M218995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello thank you for your reply, i have attempted this however no success, still shows error, with a missing bracket...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 18:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590494#M218995</guid>
      <dc:creator />
      <dc:date>2014-01-30T18:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590495#M218996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. Then you can try with the quotes:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;%ArtKat = {93},[Year Week] = {weekyear(today()) &amp;amp; num(Week(today()),'00') }&amp;gt;}OrderRad.NettoBelopp)&lt;/P&gt;&lt;P&gt;If it doesn't work, you can try:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;%ArtKat = {93}&amp;gt;}&lt;STRONG&gt; &lt;/STRONG&gt;if([Year Week]=weekyear(today()) &amp;amp; num(Week(today()),'00'), OrderRad.NettoBelopp))&lt;/P&gt;&lt;P&gt;If it still doesn't work, could you please post some sample data so we can check the data model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 18:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590495#M218996</guid>
      <dc:creator />
      <dc:date>2014-01-30T18:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590496#M218997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;sum({&amp;lt;%ArtKat = {93},[Year Week] = {"=$(weekyear(today()) &amp;amp; num(Week(today()),'00'))" }&amp;gt;}OrderRad.NettoBelopp)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;sum({&amp;lt;%ArtKat = {93},[Year Week] = {'=$(weekyear(today()) &amp;amp; num(Week(today()),'00'))'}&amp;gt;}OrderRad.NettoBelopp)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590496#M218997</guid>
      <dc:creator>santharubban</dc:creator>
      <dc:date>2014-01-30T19:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590497#M218998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have posted the example now.&lt;/P&gt;&lt;P&gt;your suggestions have still not worked, perhaps you could take a look at the application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590497#M218998</guid>
      <dc:creator />
      <dc:date>2014-01-30T19:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590498#M218999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%ArtKat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {93},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Year Week]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'=$(Variable1)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderRad.NettoBelopp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Variable1 =&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;weekyear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),'00') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590498#M218999</guid>
      <dc:creator>santharubban</dc:creator>
      <dc:date>2014-01-30T19:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590499#M219000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help!&lt;/P&gt;&lt;P&gt;it seems to ignore the week number, taking the total of all the weeks.&lt;/P&gt;&lt;P&gt;so we should land on 13757, however we land on 45989 in the last Key figure Shipping. so still not working to 100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590499#M219000</guid>
      <dc:creator />
      <dc:date>2014-01-30T20:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590500#M219001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At last &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;%ArtKat = {93}&lt;/P&gt;&lt;P&gt;,[Year Week] = {"=[Year Week]=weekyear(today()) &amp;amp; num(Week(today()),'00')"}&amp;gt;}OrderRad.NettoBelopp)&lt;/P&gt;&lt;P&gt;It seems the dual nature of some fields linked to dates forces to put them inside the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/590500#M219001</guid>
      <dc:creator />
      <dc:date>2014-01-30T20:40:31Z</dc:date>
    </item>
  </channel>
</rss>

