<?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 How to use variable in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970655#M332348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use Variable in Set Analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vStartDate='2015-1-1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vEndDate='2015-2-1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use it in pivot table expression sum({&amp;lt;YearMonth={'&amp;gt;=vStartDate&amp;lt;vEndDate'}&amp;gt;}revenue) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2015 08:54:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-08T08:54:29Z</dc:date>
    <item>
      <title>How to use variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970655#M332348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use Variable in Set Analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vStartDate='2015-1-1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vEndDate='2015-2-1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use it in pivot table expression sum({&amp;lt;YearMonth={'&amp;gt;=vStartDate&amp;lt;vEndDate'}&amp;gt;}revenue) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 08:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970655#M332348</guid>
      <dc:creator />
      <dc:date>2015-12-08T08:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970656#M332349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field you are comparing with (YearMonth) data format has to match with the variable content. That is what you have to make sure. How does your YearMonth data look like? Which function have you used in the script to create it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 08:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970656#M332349</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-12-08T08:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970657#M332350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YearMonth&lt;/SPAN&gt;= {'&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;revenue&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope YearMonth filed has same format as in Variables (i.e. YYYY-M-D) If not , please&amp;nbsp; mention the format for YearMonth Field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 09:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970657#M332350</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-12-08T09:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970658#M332351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order not to get trapped by different formats, it makes sense to convert the dates to numbers and the make a numerical comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 09:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970658#M332351</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-12-08T09:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970659#M332352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your prompt reply, My YearMonth format is the same as the variable like 'YYYY-MM-DD'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 09:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970659#M332352</guid>
      <dc:creator />
      <dc:date>2015-12-08T09:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970660#M332353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&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; font-size: 13px;"&gt; sum({&amp;lt;YearMonth={'&amp;gt;=$(=vStartDate)&amp;lt;$(=vEndDate)'}&amp;gt;}revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Note: YearMonth date values and variable values should be in same format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 09:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970660#M332353</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-12-08T09:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970661#M332354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this:&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; font-size: 13px;"&gt;sum({&amp;lt;YearMonth={'&amp;gt;=$(=$(vStartDate))&amp;lt;$(=$(vEndDate))'}&amp;gt;}revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Mayank&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 09:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970661#M332354</guid>
      <dc:creator>mayankraoka</dc:creator>
      <dc:date>2015-12-08T09:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970662#M332355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YearMonth={'&amp;gt;=$(vStartDate)&amp;lt;$(vEndDate)'}&amp;gt;}revenue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 09:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970662#M332355</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-12-08T09:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970663#M332356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The basic rule - that you can make out from tres' suggestion and all identical copies down below (?) - is that in a set modifier you specify either exact field values to use, or a "search" string (like when you start typing in a list box). A search string will not handle variables. But in a set modifier it will handle $-sign substitution to translate a variable reference into its actual content.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 09:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-Set-Analysis/m-p/970663#M332356</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-08T09:49:11Z</dc:date>
    </item>
  </channel>
</rss>

