<?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 Variable in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722199#M476020</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 have a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(AddMonths(min({&amp;lt;[Fcst Version]={"$(=Maxstring(Fcst_Num))"}&amp;gt;}[Fcst Month]),-1),'MMM-YY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This determines the Minimum month of the maxstring of the fcst Version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a set analysis that I need to include the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MonthYear={insert variable here}&amp;gt;}Fcst Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I apply that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current set analysis does not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MonthYear={$vMinFcstMonth}&amp;gt;} Fcst Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jun 2014 10:43:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-21T10:43:04Z</dc:date>
    <item>
      <title>Variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722199#M476020</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 have a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(AddMonths(min({&amp;lt;[Fcst Version]={"$(=Maxstring(Fcst_Num))"}&amp;gt;}[Fcst Month]),-1),'MMM-YY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This determines the Minimum month of the maxstring of the fcst Version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a set analysis that I need to include the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MonthYear={insert variable here}&amp;gt;}Fcst Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I apply that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current set analysis does not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MonthYear={$vMinFcstMonth}&amp;gt;} Fcst Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 10:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722199#M476020</guid>
      <dc:creator />
      <dc:date>2014-06-21T10:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722200#M476021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Month Year]={'$(=vMinFcstMonth)'}&amp;gt;}[Fcst Qty])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls check first if the variable is returning the required value with a text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 12:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722200#M476021</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-06-21T12:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722201#M476022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if this doesn't work,&lt;/P&gt;&lt;P&gt;put an equal sign before the variable in variable overview&lt;/P&gt;&lt;P&gt;check if it is returning the year month intended by putting it in a text box&lt;/P&gt;&lt;P&gt;if it is ok&lt;/P&gt;&lt;P&gt;use expression as&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Month Year]={$(vMinFcstMonth)}&amp;gt;}[Fcst Qty])&lt;/P&gt;&lt;P&gt;this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sudnar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 12:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722201#M476022</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-06-21T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722202#M476023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this one works.. My other question is how to create a comparison between a variable in a set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: vMinMonth = Apr-14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Month Year]={"&amp;gt;=$(=Min([Fcst Month]))&amp;lt;=$($(vMinMonth))"}&amp;gt;}[Fcst Qty])&lt;/P&gt;&lt;P&gt;// what I want sum({&amp;lt;[Month Year]=Mar-14&amp;lt;=Apr-14&amp;gt;}&lt;/P&gt;&lt;P&gt;on my part this does not produce the result I wanted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 13:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722202#M476023</guid>
      <dc:creator />
      <dc:date>2014-06-21T13:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722203#M476024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would prefer to change the data to its number format when u want to implement such time ranges.&lt;/P&gt;&lt;P&gt;Because interpreting the number is faster and easier. though this can be done with the time fields too.&lt;/P&gt;&lt;P&gt;num(date) would return the number format of the date. have this as a field in ur back end. use this new field in ur set analysis. for eg if u want to see the data of last one month u would use it as&lt;/P&gt;&lt;P&gt;sum({&amp;lt;date_num={&amp;gt;vlastmonthdate,&amp;lt;vtoday}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;create variable like vtoday=num(today()) and vlastmonthdate=num(today()-30).&lt;/P&gt;&lt;P&gt;Like this u can create what ever time range u wish to filter.&lt;/P&gt;&lt;P&gt;Pls specify the business rule of what time range u need so that we can help u in the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jun 2014 04:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-set-analysis/m-p/722203#M476024</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-06-22T04:47:23Z</dc:date>
    </item>
  </channel>
</rss>

