<?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 Help with Syntax in a Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Syntax-in-a-Set-analysis/m-p/186098#M50351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am quite a beginner in set analysis syntax so i would need your help:&lt;/P&gt;&lt;P&gt;I have two dimensions in my datamart i want to use specificly in a set analysis expression to format my table:&lt;/P&gt;&lt;P&gt;-Distribution networks going from 01 to 22 (text format)&lt;/P&gt;&lt;P&gt;-Analytics families going from 98510 to 98599 (numeric format)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already use ONLY(YEAR) and ONLY(YEAR)-1 to make appear variable time following month and day selections in terms of turnover.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With distribution networks and analytics families in dimension, my first expression column is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;FIRST COLUMN&lt;/B&gt; to traduce turnover for ANALYTICS &amp;gt;98518 and &amp;lt;98527 in distribution networks 01 and 07 (it's working maybe there is more simple expression ...???):&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;YEAR={$(=ONLY(YEAR)-1)} [ANALYTICS] = {'&amp;lt; 98518'} [ANALYTICS]={'07'} &amp;gt;} [SALES]) + sum({&amp;lt;YEAR={$(=ONLY(YEAR)-1)} [ANALYTICS] = {'&amp;lt; 98518'} [ANALYTICS]={'01'} &amp;gt;} [SALES])+&lt;BR /&gt;sum({&amp;lt;YEAR={$(=ONLY(YEAR)-1)} [ANALYTICS] = {'&amp;gt; 98527'} [ANALYTICS]={'07'} &amp;gt;} [SALES]) + sum({&amp;lt;YEAR={$(=ONLY(YEAR)-1)} [ANALYTICS] = {'&amp;gt; 98527'} [ANALYTICS]={'01'} &amp;gt;} [SALES])&lt;/P&gt;&lt;P&gt;&lt;B&gt;SECOND COLUMN&lt;/B&gt; to traduce turnover for ANALYTICS &amp;lt;98518 in distribution networks different from 01 and 07 &lt;B&gt;(I NEED HELP on that)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;THIRD COLUMN&lt;/B&gt; to traduce turnover for ANALYTICS from 98518 included to 98521 included whatever the distribution network is. &lt;B&gt;(I NEED HELP on that)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;FOURTH COLUMN to traduce turnover for ANALYTICS from 98522 included to 98527 included whatever the distribution network is. &lt;B&gt;(I NEED HELP on that)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;thanks guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Dec 2009 17:34:38 GMT</pubDate>
    <dc:creator>alex59800</dc:creator>
    <dc:date>2009-12-14T17:34:38Z</dc:date>
    <item>
      <title>Help with Syntax in a Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Syntax-in-a-Set-analysis/m-p/186098#M50351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am quite a beginner in set analysis syntax so i would need your help:&lt;/P&gt;&lt;P&gt;I have two dimensions in my datamart i want to use specificly in a set analysis expression to format my table:&lt;/P&gt;&lt;P&gt;-Distribution networks going from 01 to 22 (text format)&lt;/P&gt;&lt;P&gt;-Analytics families going from 98510 to 98599 (numeric format)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already use ONLY(YEAR) and ONLY(YEAR)-1 to make appear variable time following month and day selections in terms of turnover.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With distribution networks and analytics families in dimension, my first expression column is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;FIRST COLUMN&lt;/B&gt; to traduce turnover for ANALYTICS &amp;gt;98518 and &amp;lt;98527 in distribution networks 01 and 07 (it's working maybe there is more simple expression ...???):&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;YEAR={$(=ONLY(YEAR)-1)} [ANALYTICS] = {'&amp;lt; 98518'} [ANALYTICS]={'07'} &amp;gt;} [SALES]) + sum({&amp;lt;YEAR={$(=ONLY(YEAR)-1)} [ANALYTICS] = {'&amp;lt; 98518'} [ANALYTICS]={'01'} &amp;gt;} [SALES])+&lt;BR /&gt;sum({&amp;lt;YEAR={$(=ONLY(YEAR)-1)} [ANALYTICS] = {'&amp;gt; 98527'} [ANALYTICS]={'07'} &amp;gt;} [SALES]) + sum({&amp;lt;YEAR={$(=ONLY(YEAR)-1)} [ANALYTICS] = {'&amp;gt; 98527'} [ANALYTICS]={'01'} &amp;gt;} [SALES])&lt;/P&gt;&lt;P&gt;&lt;B&gt;SECOND COLUMN&lt;/B&gt; to traduce turnover for ANALYTICS &amp;lt;98518 in distribution networks different from 01 and 07 &lt;B&gt;(I NEED HELP on that)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;THIRD COLUMN&lt;/B&gt; to traduce turnover for ANALYTICS from 98518 included to 98521 included whatever the distribution network is. &lt;B&gt;(I NEED HELP on that)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;FOURTH COLUMN to traduce turnover for ANALYTICS from 98522 included to 98527 included whatever the distribution network is. &lt;B&gt;(I NEED HELP on that)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;thanks guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2009 17:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Syntax-in-a-Set-analysis/m-p/186098#M50351</guid>
      <dc:creator>alex59800</dc:creator>
      <dc:date>2009-12-14T17:34:38Z</dc:date>
    </item>
  </channel>
</rss>

