<?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 is this valid syntax for a set expression ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202963#M60478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting,&lt;/P&gt;&lt;P&gt;Though i went for a similar syntax at some point in the process:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Sales.Store_No={324}, Sales.Item_No={ITEM_NO}&amp;gt;} Sales.IsValidSale)&lt;/P&gt;&lt;P&gt;There does not seem to be much in the docs about the Use and application of Set Analysis&lt;/P&gt;&lt;P&gt;As Ever I appreciate your Input&lt;/P&gt;&lt;P&gt;ColinR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2010 17:35:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-08T17:35:01Z</dc:date>
    <item>
      <title>is this valid syntax for a set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202956#M60471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Sales.Store_No = {324} Sales.Item_No = {$(GetFieldSelections(ITEM_NO))} &amp;gt;} Sales.IsValidSale)&lt;/P&gt;&lt;P&gt;it is returning 0 for every row in my pivot table even when i select 1 ITEM_NO that i know has sales, of course it works if I hard code an Item_no in a similar way to store 324.&lt;/P&gt;&lt;P&gt;What is the correct way to do this, the sales table is not linked to my data table so what im actually after in this case is Sales.item_no = Mypivot.currentrow.ITEM_NO ?&lt;/P&gt;&lt;P&gt;ColinR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 12:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202956#M60471</guid>
      <dc:creator />
      <dc:date>2010-01-06T12:41:22Z</dc:date>
    </item>
    <item>
      <title>is this valid syntax for a set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202957#M60472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to separate multiple fields in your set expression with commas:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({$&amp;lt;Sales.Store_No={324}&lt;STRONG&gt;,&lt;/STRONG&gt; Sales.Item_No={$(=GetFieldSelections(ITEM_NO))} &amp;gt;} Sales.IsValidSale)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;EDIT: I also think you need an equals sign to start your dollar sign expansion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 15:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202957#M60472</guid>
      <dc:creator />
      <dc:date>2010-01-06T15:27:00Z</dc:date>
    </item>
    <item>
      <title>is this valid syntax for a set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202958#M60473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are right about the = sign, but help sugggests getfieldselections() is comma seperated by default&lt;/P&gt;&lt;P&gt;tried your prev suggestion of expression as column header and the getfields is evaluating to {} for some reason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 17:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202958#M60473</guid>
      <dc:creator />
      <dc:date>2010-01-06T17:00:07Z</dc:date>
    </item>
    <item>
      <title>is this valid syntax for a set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202959#M60474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you make a selection in the ITEM_NO field? If no selections are made, it returns null.&lt;/P&gt;&lt;P&gt;I meant you needed a comma between the two fields.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;...Store_No={324} &lt;B&gt;,&lt;/B&gt; Sales.Item_No...&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The GetFieldSelections should evaluate in a Text Object. Check this in a Text Object:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=GetFieldSelections(ITEM_NO)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I think the expression looks fine though. Are both Store_No and Item_No numeric fields? They aren't strings, are they?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 17:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202959#M60474</guid>
      <dc:creator />
      <dc:date>2010-01-06T17:57:59Z</dc:date>
    </item>
    <item>
      <title>is this valid syntax for a set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202960#M60475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah that comma will explain why the syntax didnt validate in the expression builder&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 19:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202960#M60475</guid>
      <dc:creator />
      <dc:date>2010-01-06T19:05:20Z</dc:date>
    </item>
    <item>
      <title>is this valid syntax for a set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202961#M60476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worth noting is that while set analysis will let you get away with something like MyField={MyValue}, it will NOT let you get away with MyField={My Value}. If there can be any whitespace in your values, they need to be enclosed in single quotes, so MyField={'My Value'}. You may also sometimes see people code MyField={"My Value"}. While this WILL work, it is NOT specifying a literal, but rather a search string. Search string "My Value" will only match literal 'My Value', which is why it still works, but I would recommend using literals when you want literals, and search strings only when you actually want to match multiple values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 21:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202961#M60476</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-01-06T21:30:22Z</dc:date>
    </item>
    <item>
      <title>is this valid syntax for a set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202962#M60477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, something even more basic to simplify the expression and perhaps improve performance. A field IS an element set. So you &lt;EM&gt;should&lt;/EM&gt; be able to do this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;Sales.Store_No={324}, Sales.Item_No=ITEM_NO&amp;gt;} Sales.IsValidSale)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 21:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202962#M60477</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-01-06T21:45:19Z</dc:date>
    </item>
    <item>
      <title>is this valid syntax for a set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202963#M60478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting,&lt;/P&gt;&lt;P&gt;Though i went for a similar syntax at some point in the process:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Sales.Store_No={324}, Sales.Item_No={ITEM_NO}&amp;gt;} Sales.IsValidSale)&lt;/P&gt;&lt;P&gt;There does not seem to be much in the docs about the Use and application of Set Analysis&lt;/P&gt;&lt;P&gt;As Ever I appreciate your Input&lt;/P&gt;&lt;P&gt;ColinR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 17:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-this-valid-syntax-for-a-set-expression/m-p/202963#M60478</guid>
      <dc:creator />
      <dc:date>2010-01-08T17:35:01Z</dc:date>
    </item>
  </channel>
</rss>

