<?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: Re: Concatinating modifyers in a set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549847#M479929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could be incredibly mistaken but I think set analysis still isn't a row-by-row thing (and left() is not an aggregation function). Your new set criteria are determined at the start of object evaluation. IMHO [Année-période financière] on the right is returning all values and left() has difficulty taking out the first 5 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's a lame alternative expression (especially with large data sets) but this one will instantly fix it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum({$&amp;lt;[%CLE_Type_Transaction_ID] = {'EB', 'EA'}&amp;gt;} if (right([Année-période financière], 2) = '12', [Montant cumulé aad] * %CR004M))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would add a field called Month to your transaction table and use set analysis again with an additional modifier like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;..., [Mois] = {12} &amp;gt;} ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jan 2014 17:59:56 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2014-01-03T17:59:56Z</dc:date>
    <item>
      <title>Concatinating modifyers in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549844#M479926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;is it possible to concatinate within a set modifyer. For example, our Year-period field is comprised of 7 characters: 2014-06.&lt;/P&gt;&lt;P&gt;Meaning year 2014, period 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to have a set modifyer that takes the first 5 characters of the selection in "Année-Période financière", for example, it would return "2014-" with the selection of "2014-06", and concatinate that with period 12. This should give the whole year budget in the example below.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[%CLE_Type_Transaction_ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EB', 'EA'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Année-période financière]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {left(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Année-période financière]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,5)&amp;amp;'12'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Montant cumulé aad]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * %CR004M) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But anyone with skills beyond mine will see that this part:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Année-période financière]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {left(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Année-période financière]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,5)&amp;amp;'12'} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Doesn't work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;What would?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 16:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549844#M479926</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2014-01-03T16:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Concatinating modifyers in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549845#M479927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a dollar sign expansion in your set modifier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[%CLE_Type_Transaction_ID]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'EB', 'EA'}, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Année-période financière]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;= {&lt;STRONG&gt;$(=left(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #800000; font-size: 8pt; font-style: inherit; font-family: inherit;"&gt;[Année-période financière]&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;STRONG&gt;,5)&amp;amp;'12')&lt;/STRONG&gt; } &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Montant cumulé aad]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; * %CR004M)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 16:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549845#M479927</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-03T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Concatinating modifyers in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549846#M479928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for the cue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is OK, &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[%CLE_Type_Transaction_ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'EB', 'EA'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Année-période financière]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=left([Année-période financière],5)&amp;amp;'12')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Montant cumulé aad]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%CR004M&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But it returns nulls.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If I type in '2014-12' instead, I get the proper values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks for the help, I'm still fiddling with the $ expension sign.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 16:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549846#M479928</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2014-01-03T16:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Concatinating modifyers in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549847#M479929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could be incredibly mistaken but I think set analysis still isn't a row-by-row thing (and left() is not an aggregation function). Your new set criteria are determined at the start of object evaluation. IMHO [Année-période financière] on the right is returning all values and left() has difficulty taking out the first 5 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's a lame alternative expression (especially with large data sets) but this one will instantly fix it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum({$&amp;lt;[%CLE_Type_Transaction_ID] = {'EB', 'EA'}&amp;gt;} if (right([Année-période financière], 2) = '12', [Montant cumulé aad] * %CR004M))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would add a field called Month to your transaction table and use set analysis again with an additional modifier like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;..., [Mois] = {12} &amp;gt;} ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 17:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549847#M479929</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-01-03T17:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Concatinating modifyers in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549848#M479930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, set analysis as well as the dollar sign expansion is only evaluated once per chart, not per dimension value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assumed a selection in Année-periode financiére ("...&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;takes the first 5 characters of the &lt;SPAN style="text-decoration: underline;"&gt;selection&lt;/SPAN&gt; in ...")&lt;/SPAN&gt;, so the expression should work for only a single possible value in this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit;"&gt;=left([Année-période financière],5)&amp;amp;'12'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return in a text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try to enclose this in single quotes, maybe QV is taken this as a calculation otherwise:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[%CLE_Type_Transaction_ID]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {'EB', 'EA'}, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Année-période financière]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;= {'&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(=left([Année-période financière],5)&amp;amp;'12')'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Montant cumulé aad]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;%CR004M&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 18:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549848#M479930</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-03T18:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Concatinating modifyers in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549849#M479931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW happy 40k, S. Nice work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 18:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549849#M479931</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-01-03T18:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Concatinating modifyers in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549850#M479932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the field [Année-Période financière] was meant as a single selection field. All tables are conditionaly calculated with the selection of only one value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit; color: #808080; font-size: 8pt;"&gt;&lt;STRONG style="font-family: inherit;"&gt;&lt;EM style="font-family: inherit; font-size: 8pt;"&gt;=left([Année-période financière],5)&amp;amp;'12'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;returned: 2014-12 in the text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the outside single quotes worked:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; color: #800000; font-size: 8pt;"&gt;[Année-période financière]&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt;"&gt;= {'&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;&lt;EM style="font-family: inherit; color: #808080; font-size: 8pt;"&gt;$(=left([Année-période financière],5)&amp;amp;'12')'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt;"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 18:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatinating-modifyers-in-a-set-analysis/m-p/549850#M479932</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2014-01-03T18:40:42Z</dc:date>
    </item>
  </channel>
</rss>

