<?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 pass Dimension values in Set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24968#M4126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;‌'s approach of using As-of-Table is the only way to avoid Aggr() &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Requirement is to create trailing line chart , so when any particular month all the 13 previous months til that selected months should be displayed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Use set analysis for this... have you tried that also? May be share a sample so that we can give you a more precise advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 12:41:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-02-01T12:41:36Z</dc:date>
    <item>
      <title>How to pass Dimension values in Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24964#M4122</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;I need to create a chart, where Dimension values needs to be passes inside chart set expression.&lt;/P&gt;&lt;P&gt;Ex: I need sum of sales of those customers which are in previous month , and Trend chart needs to be created with month as dimension&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Month ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum( &amp;lt;{customer=p({&amp;lt;Month ID={4}&amp;gt;}customer) * &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;customer=p({&amp;lt;Month ID={3}&amp;gt;}customer)&amp;nbsp; sales)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum( &amp;lt;{customer=p({&amp;lt;Month ID={5}&amp;gt;}customer) * &lt;SPAN style="font-size: 13.3333px;"&gt;customer=p({&amp;lt;Month ID={4}&amp;gt;}customer)&amp;nbsp; sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to pass Month ID in set expression dynamically.&lt;/P&gt;&lt;P&gt;I have tried using max function, but it passes&amp;nbsp; only 5&amp;nbsp; and 4 in every row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chaitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 06:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24964#M4122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T06:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Dimension values in Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24965#M4123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis works once for the entire chart. That means, chart row wise evaluation of set analysis would not be that straight forward. I guess the way you might try is: &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 06:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24965#M4123</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-31T06:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Dimension values in Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24966#M4124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like this also (if you have QV12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(Customer = Above(Customer), Sum(Sales)), Customer, ([Month ID], (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this if you know that Month ID is correctly sorted in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(Customer = Above(Customer), Sum(Sales)), Customer, [Month ID]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24966#M4124</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-31T13:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Dimension values in Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24967#M4125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi&amp;nbsp; Sunny,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks for the reply, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;We have tried approach mentioned&amp;nbsp; by you, Its working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; But we are facing one problem , i.e.,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Requirement is to create trailing line chart , so when any particular month all the 13 previous months til that selected months should be displayed. and also is there any way to write this without aggr as we have larger data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 04:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24967#M4125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-01T04:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Dimension values in Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24968#M4126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;‌'s approach of using As-of-Table is the only way to avoid Aggr() &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Requirement is to create trailing line chart , so when any particular month all the 13 previous months til that selected months should be displayed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Use set analysis for this... have you tried that also? May be share a sample so that we can give you a more precise advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 12:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-Dimension-values-in-Set-expression/m-p/24968#M4126</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-01T12:41:36Z</dc:date>
    </item>
  </channel>
</rss>

