<?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: How to create a variable based on another variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711830#M1078956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed a missing backet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;Count( {&amp;lt;(Left(Semester,2))=($&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;vPreviousYear)&amp;gt;}EMPLID)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I have not checked anything else though.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Jul 2014 19:38:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-19T19:38:36Z</dc:date>
    <item>
      <title>How to create a variable based on another variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711828#M1078952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 variables vCurrentYear &amp;amp; vPreviousYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrentYear = right (year(today()),2) &lt;/P&gt;&lt;P&gt;because I only want it to get '14'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPreviousYear =$(vCurrentYear)-1 &lt;/P&gt;&lt;P&gt;which will give me 13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to create a new variable that will check a part of a field to see if its the current year or the previous year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a semester field which is filled like 1401, 1402, 1301, 1302&lt;/P&gt;&lt;P&gt;the 14 and 13 being the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now what I put into the variable was this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count( {&amp;lt;(Left(Semester,2))=($vPreviousYear)&amp;gt;}EMPLID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meaning count all the EMPLID where the first two digits of the semester field are equal to the Previous year which 13.&lt;/P&gt;&lt;P&gt;It won't work, I think it has to do with the syntax, some help please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jul 2014 19:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711828#M1078952</guid>
      <dc:creator>bashar_f</dc:creator>
      <dc:date>2014-07-19T19:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on another variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711829#M1078954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a tricky one. For now I found a small workaround modifying the vPreviousYear variable to 14*, 13* respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;13* in the set modifier does the same like using the left() function on the field (Which is not possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jul 2014 19:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711829#M1078954</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-07-19T19:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on another variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711830#M1078956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed a missing backet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;Count( {&amp;lt;(Left(Semester,2))=($&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;vPreviousYear)&amp;gt;}EMPLID)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I have not checked anything else though.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jul 2014 19:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711830#M1078956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-19T19:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on another variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711831#M1078958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I must've missed it after trying to mix things up, &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count( {&amp;lt;(Left(Semester,2))=($&lt;EM style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/EM&gt;&lt;/EM&gt;&lt;EM style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;vPreviousYear)&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d;"&gt;}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d;"&gt;EMPLID)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Eventually, written like this, I get a red line just under the bracket in bold.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jul 2014 19:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711831#M1078958</guid>
      <dc:creator>bashar_f</dc:creator>
      <dc:date>2014-07-19T19:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on another variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711832#M1078959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also keep your variables as you declared them initially and try the below:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Semester={"=Left(Semester, 2) = $(vPreviousYear)"}&amp;gt;} EMPLID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jul 2014 22:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711832#M1078959</guid>
      <dc:creator />
      <dc:date>2014-07-19T22:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on another variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711833#M1078961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Learned something new &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 07:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711833#M1078961</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-07-21T07:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on another variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711834#M1078963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;Here's a link for another example of how to use this kind of search strings:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.naturalsynergies.com/q-tip-5-show-top-performers-common-but-not-too-trivial/" title="http://www.naturalsynergies.com/q-tip-5-show-top-performers-common-but-not-too-trivial/"&gt;http://www.naturalsynergies.com/q-tip-5-show-top-performers-common-but-not-too-trivial/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-variable-based-on-another-variable/m-p/711834#M1078963</guid>
      <dc:creator />
      <dc:date>2014-07-21T09:54:38Z</dc:date>
    </item>
  </channel>
</rss>

