<?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 Expression Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181483#M47496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice Tip, But in My case selecting 1 item returns Single Value Double Quoted as expected, Selecting More than 1 Item returns "-" the Null Symbol&lt;/P&gt;&lt;P&gt;My Version is 9 Sr2&lt;/P&gt;&lt;P&gt;Is there a better Way than $Expansion, Im Guessing {} is an Array but {FWeek} doesnt Work and this must be fairly common requirement ?&lt;/P&gt;&lt;P&gt;ColinR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColinR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Dec 2009 00:21:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-10T00:21:39Z</dc:date>
    <item>
      <title>Set Expression Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181479#M47492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;appologies if youve seen this question before but (im having a problem with Message Posting timeouts)&lt;/P&gt;&lt;P&gt;This set function is supposed to sum price*Qty for current Financial Week's (FWeek). FWeek is a field in a list Box That can filter more than one week. the set Calc works when filtered to current week but not more than 1 Week.&lt;/P&gt;&lt;P&gt;How does it need to change to sum up ALL selected Weeks ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sum({1&amp;lt;FWeek = {$(=FWeek)} } &amp;gt;} (PLU_PRICE*QUANTITY))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColinR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 18:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181479#M47492</guid>
      <dc:creator />
      <dc:date>2009-12-09T18:56:08Z</dc:date>
    </item>
    <item>
      <title>Set Expression Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181480#M47493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colinr,&lt;/P&gt;&lt;P&gt;Why do you need a set analysis for calculating a sum of Plu_price * Quantity? if you wanna get the result for the selecting week just write the sentence sum(Plu_price * Quantity) and it will work for one or more than one week selected.&lt;/P&gt;&lt;P&gt;I hope this help you.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 19:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181480#M47493</guid>
      <dc:creator />
      <dc:date>2009-12-09T19:45:45Z</dc:date>
    </item>
    <item>
      <title>Set Expression Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181481#M47494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesnt,&lt;/P&gt;&lt;P&gt;This is a simplified extract of my problem, I have a more complex filter Appliied im using the set expression to break out of the Current Filter and do a calc of PLUPrice*Qty using only the Weeks selected portion of the applied Selections&lt;/P&gt;&lt;P&gt;colinr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 23:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181481#M47494</guid>
      <dc:creator />
      <dc:date>2009-12-09T23:37:02Z</dc:date>
    </item>
    <item>
      <title>Set Expression Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181482#M47495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, you should put that expression into a chart, but don't give it a label. Then when the chart is rendered, the label will be your Set Analysis expression with your dollar sign expansion evaluated.&lt;/P&gt;&lt;P&gt;What is the format of FWeek values? You may just need quotes around the dollar sign expansion:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({1&amp;lt;FWeek = {"$(=FWeek)"} } &amp;gt;} (PLU_PRICE*QUANTITY))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If your weeks are string values, the dollar sign expansion is going to give you:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;"Value1,Value2,Value3"&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You need it to be:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;"Value1",Value2","Value3"&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If that's the case, then you probably need to use a variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 23:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181482#M47495</guid>
      <dc:creator />
      <dc:date>2009-12-09T23:59:40Z</dc:date>
    </item>
    <item>
      <title>Set Expression Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181483#M47496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice Tip, But in My case selecting 1 item returns Single Value Double Quoted as expected, Selecting More than 1 Item returns "-" the Null Symbol&lt;/P&gt;&lt;P&gt;My Version is 9 Sr2&lt;/P&gt;&lt;P&gt;Is there a better Way than $Expansion, Im Guessing {} is an Array but {FWeek} doesnt Work and this must be fairly common requirement ?&lt;/P&gt;&lt;P&gt;ColinR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColinR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 00:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181483#M47496</guid>
      <dc:creator />
      <dc:date>2009-12-10T00:21:39Z</dc:date>
    </item>
    <item>
      <title>Set Expression Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181484#M47497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weird, so it sounds like you are getting the equivilent of ONLY(FWeek) when using $(=FWeek).&lt;/P&gt;&lt;P&gt;Try creating a varible. Set the value to:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=GetFieldSelections(FWeek)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That will return a comma-delimited list of all selected items. Then in your expression, use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({1&amp;lt;FWeek = {$(vWeek)} } &amp;gt;} (PLU_PRICE*QUANTITY))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Where vWeek is the name of the variable defined above. Again, if you need the quotes around multiple values, you'll need to modify the variable to provide it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 01:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Question/m-p/181484#M47497</guid>
      <dc:creator />
      <dc:date>2009-12-10T01:47:47Z</dc:date>
    </item>
  </channel>
</rss>

