<?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 Syntax: Use of Quotes in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-Use-of-Quotes-in-Set-Analysis/m-p/240795#M91268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;tab-stops:306.15pt;"&gt;Hi, have you tried something like FiscCalQuarter={$(='Q' &amp;amp; Text(Num(Right('$(vCurrentQtr)',1)-1)))} ?&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2011 17:21:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-07T17:21:15Z</dc:date>
    <item>
      <title>Syntax: Use of Quotes in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Use-of-Quotes-in-Set-Analysis/m-p/240793#M91266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I always struggle with where to use quotes. Usually I can get it to work after some trial and error, but this one has me baffled. I'm trying to write a statement to go find last quarter's result. I have a variable vCurrentQtr that stores a value (ex: 'Q3'). If true, this statement works fine, but if false it doesn't work. It has to do with how I'm parsing the quarter:&lt;/P&gt;&lt;P&gt;=If('$(vCurrentQtr)'='Q1',&lt;BR /&gt; Sum({$&amp;lt;FiscCalYr={'$(PreviousYear)'}, FiscCalQuarter={'Q4'} &amp;gt;} ResalePriceExtUSD),&lt;BR /&gt; Sum({$&amp;lt;FiscCalYr={'$(CurrentYear)'}, FiscCalQuarter={'Q' &amp;amp; Text(Num(Right('$(vCurrentQtr)',1)-1))} &amp;gt;} ResalePriceExtUSD)&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;So, I begin to troubleshoot...&lt;/P&gt;&lt;P&gt;This works: FiscCalQuarter={'Q3'}&lt;/P&gt;&lt;P&gt;This does not work: FiscCalQuarter={'Q' &amp;amp; '3'}&lt;/P&gt;&lt;P&gt;This does not work: FiscCalQuarter={$('Q') &amp;amp; $('3')}&lt;/P&gt;&lt;P&gt;So, how do I build a string concatenation then?&lt;/P&gt;&lt;P&gt;Can anyone help? I've spent hours going through every variation I could think of and it's still not working. I need to evaluate the number in 'Q3' so I can decrement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2011 23:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Use-of-Quotes-in-Set-Analysis/m-p/240793#M91266</guid>
      <dc:creator />
      <dc:date>2011-03-06T23:19:54Z</dc:date>
    </item>
    <item>
      <title>Syntax: Use of Quotes in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Use-of-Quotes-in-Set-Analysis/m-p/240794#M91267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is often not straightforward... Try if it works:&lt;BR /&gt;FiscCalQuarter={"$(='Q' &amp;amp; '3')"}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 02:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Use-of-Quotes-in-Set-Analysis/m-p/240794#M91267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-07T02:52:29Z</dc:date>
    </item>
    <item>
      <title>Syntax: Use of Quotes in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Use-of-Quotes-in-Set-Analysis/m-p/240795#M91268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;tab-stops:306.15pt;"&gt;Hi, have you tried something like FiscCalQuarter={$(='Q' &amp;amp; Text(Num(Right('$(vCurrentQtr)',1)-1)))} ?&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 17:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Use-of-Quotes-in-Set-Analysis/m-p/240795#M91268</guid>
      <dc:creator />
      <dc:date>2011-03-07T17:21:15Z</dc:date>
    </item>
  </channel>
</rss>

