<?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: Using string munipulation in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708469#M672710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like(magic of '$')&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum(&lt;STRONG&gt;$(=&lt;/STRONG&gt;'CurrentQuarter.Q' &amp;amp; (Right('$(vCurrentQuarter)',1)-1) &amp;amp; '.CV'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 12:53:18 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-08-20T12:53:18Z</dc:date>
    <item>
      <title>Using string munipulation in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708466#M672707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, new user here that would benefit from experts from this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a string variable: &lt;/P&gt;&lt;P&gt;vCurrentQuarter = 'Q2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my expression, I would like to perform a simple calculation.&lt;/P&gt;&lt;P&gt;For 'Q2', I would like my result to be 'Q1' (i.e. 2&lt;STRONG&gt;-1&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This calculated string of 'Q1' will then be used to pull a value from the cube.&lt;/P&gt;&lt;P&gt;CurrentQuarter.&lt;STRONG&gt;Q1&lt;/STRONG&gt;.CV&lt;/P&gt;&lt;P&gt;=sum(={'CurrentQuarter.Q' &amp;amp; (Right('$(vCurrentQuarter)',1)-1) &amp;amp; '.CV'})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in essence, I would like my derived line to be:&lt;/P&gt;&lt;P&gt;=sum(CurrentQuarter.Q1.CV)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot get it to work unfortunately, please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 21:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708466#M672707</guid>
      <dc:creator />
      <dc:date>2014-08-19T21:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using string munipulation in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708467#M672708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;num(Right('$(vCurrentQuarter)',1))-1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 21:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708467#M672708</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-08-19T21:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using string munipulation in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708468#M672709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was always able to get it to resolve to CurrentQuarter.Q1.CV in the Label even with my old statement of &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'CurrentQuarter.Q' &amp;amp; (Right('$(vCurrentQuarter)',1)-1) &amp;amp; '.CV' using without the &lt;STRONG&gt;num&lt;/STRONG&gt; function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But in the expression, in conjuntion of the sum function, Qlikview is not able to retrieve data from the CurrentQuarter.Q1.CV column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is how Qlikview expects a non-string variable that is the puzzle that I am trying to solve.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum('CurrentQuarter.Q' &amp;amp; (Right('$(vCurrentQuarter)',1)-1) &amp;amp; '.CV')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;that's equivalent to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CurrentQuarter.Q1.CV'&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;which results to nothing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But if we can somehow make it so it is NOT a string, it would work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CurrentQuarter.Q1.CV&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The question is how?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 12:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708468#M672709</guid>
      <dc:creator />
      <dc:date>2014-08-20T12:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using string munipulation in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708469#M672710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like(magic of '$')&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum(&lt;STRONG&gt;$(=&lt;/STRONG&gt;'CurrentQuarter.Q' &amp;amp; (Right('$(vCurrentQuarter)',1)-1) &amp;amp; '.CV'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 12:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708469#M672710</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-20T12:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using string munipulation in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708470#M672711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is great! &lt;/P&gt;&lt;P&gt;I ended up reading more about this $-sign expansion here for the other people that got stumped.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.naturalsynergies.com/q-tip-6-those-tricky-sign-expansions/" title="http://www.naturalsynergies.com/q-tip-6-those-tricky-sign-expansions/"&gt;Q-Tip #6 - Those Tricky $-Sign Expansions | Natural Synergies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again to whoever that helped out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 13:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-string-munipulation-in-Expression/m-p/708470#M672711</guid>
      <dc:creator />
      <dc:date>2014-08-20T13:46:55Z</dc:date>
    </item>
  </channel>
</rss>

