<?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: set analysis with variable value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720751#M258877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post sample data with expected output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why you need to filter with variable if it is not associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 07:45:45 GMT</pubDate>
    <dc:creator>ashfaq_haseeb</dc:creator>
    <dc:date>2014-10-14T07:45:45Z</dc:date>
    <item>
      <title>Current Year value for a particular variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720745#M258871</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 requirement where I need to find out current year sales.Looks below expression is good for current year.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {'$(=Year(Today()))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my requirement is i want to find out the current year sales based Variable value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;my Variable is "vIndicator",this variablewill store the values like A,B,C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find the current year sales where variable :vIndicator" value is 'A'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {'$(=Year(Today()))'}&amp;gt;,sum(if($(Indicator)='A')Sales)??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ?&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, 14 Oct 2014 07:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720745#M258871</guid>
      <dc:creator />
      <dc:date>2014-10-14T07:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720746#M258872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathiraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is your variable value?&lt;/P&gt;&lt;P&gt;If it is based on some field value, then you can use the below.&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({&amp;lt;Year = {'$(=Year(Today()))'}, Field=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{'$(=$(vIndicator))'}&amp;gt;}&lt;/SPAN&gt;)Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 07:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720746#M258872</guid>
      <dc:creator />
      <dc:date>2014-10-14T07:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720747#M258873</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;use&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {'$(=Year(Today()))'}, Indicator ={'$(=vIndicator)'} &amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 07:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720747#M258873</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2014-10-14T07:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720748#M258874</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 something 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;"&gt;Sum({&amp;lt;Year = {'$(=Year(Today()))'},Field=&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;vIndicator&lt;/SPAN&gt;)'}&lt;/SPAN&gt;&amp;gt;Sales)&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;Make sure you replace &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Field&lt;/SPAN&gt; with your actual field&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;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;"&gt;ASHFAQ&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 07:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720748#M258874</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-10-14T07:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720749#M258875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No my variable value is not based on field.&lt;/P&gt;&lt;P&gt;I need to sum the based on&amp;nbsp; like this way &lt;/P&gt;&lt;P&gt;sum(if($(vIndicator)='A',Sales))---&amp;gt;it will give the all years sales where variable =A,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I want only for current year.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 07:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720749#M258875</guid>
      <dc:creator />
      <dc:date>2014-10-14T07:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720750#M258876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanku Ashfaq but your requirement suits when we use field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but my requirement looks like below&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(if($(vIndicator)='A',Sales))---&amp;gt;it will give the all years sales where variable =A,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but I want only for current year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 07:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720750#M258876</guid>
      <dc:creator />
      <dc:date>2014-10-14T07:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720751#M258877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post sample data with expected output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why you need to filter with variable if it is not associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 07:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720751#M258877</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-10-14T07:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720752#M258878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Tell me what is the expression/Logic your using in &lt;STRONG&gt;vIndicator&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will be easy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 07:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720752#M258878</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-10-14T07:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720753#M258879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Because my variable has created&amp;nbsp; multiple field condition from multiple tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the var condition,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ([VAR ETO]='ETO', if([Suspension Flag - MM]&amp;lt;&amp;gt; '#' ,'A',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Today()- RDD = 0, 'B',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If([Qty Open] &amp;gt; 0 And RDD &amp;lt; Today(), 'C', &lt;/P&gt;&lt;P&gt;&amp;nbsp; If([YearMonth RDD]=vYearMonthCurrentDate, 'D',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( [YearMonth RDD]&amp;lt;&amp;gt;vYearMonthCurrentDate&amp;nbsp; , 'E',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Qty Open] &amp;lt;=0, '4. Delivered'))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to find the sales only for variable value as A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 13:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720753#M258879</guid>
      <dc:creator />
      <dc:date>2014-10-14T13:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720754#M258880</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;hi,&lt;/P&gt;&lt;P&gt;will it work to find vindicator = A for current year??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(year=$(vCurrentYear),sum(if($(vIndicator)='A',Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 07:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720754#M258880</guid>
      <dc:creator />
      <dc:date>2014-10-15T07:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720755#M258881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try some thing like this&lt;/P&gt;&lt;P&gt;create a condion like this&lt;/P&gt;&lt;P&gt;vVar=if($(vIndicator)='A',max(Year)/Year(today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({Year={'$(vVar)'}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use all the conditions like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;[Suspension Flag - MM]={'*'}-{'#'}, Year={$(=vCurrentYear)}&amp;gt;}sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in the above expression use all the conditons those are equal to 'A'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 07:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720755#M258881</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-10-15T07:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variable value</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720756#M258882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sasi, Looks your solution not working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally I got it here below the expression.&lt;/P&gt;&lt;P&gt;sum(if(Year=$(vCurrentYear),if($(vIndicator)='3. Due Later',[Undelivered Net value USD])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for your valuable suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-value-for-a-particular-variable-value/m-p/720756#M258882</guid>
      <dc:creator />
      <dc:date>2014-10-15T08:12:02Z</dc:date>
    </item>
  </channel>
</rss>

