<?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 from Chart to Function Call Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386375#M144302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple Example I created a function not the following the one i have is very long &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_Vk is Variable&lt;/P&gt;&lt;P&gt;v_Vk is defined as follows &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;X={$1}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Calling the function $(v_Vk(DimensionValue))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the DimensionValue to be the Charts Dimension value so I do no have to hard code through each Value thats needed to calculate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2013 21:23:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-26T21:23:21Z</dc:date>
    <item>
      <title>How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386373#M144300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression that takes a paramater as a value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one of my charts the values in one of the dimensions are the names I would like to pass to my function. How Would you accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(FunctionName(PassDimension))??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 20:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386373#M144300</guid>
      <dc:creator />
      <dc:date>2013-02-26T20:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386374#M144301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you be more specific? Do you have an example file of what you are trying to accomplish?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 21:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386374#M144301</guid>
      <dc:creator />
      <dc:date>2013-02-26T21:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386375#M144302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple Example I created a function not the following the one i have is very long &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_Vk is Variable&lt;/P&gt;&lt;P&gt;v_Vk is defined as follows &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;X={$1}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Calling the function $(v_Vk(DimensionValue))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the DimensionValue to be the Charts Dimension value so I do no have to hard code through each Value thats needed to calculate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 21:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386375#M144302</guid>
      <dc:creator />
      <dc:date>2013-02-26T21:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386376#M144303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(variable_name($(=field_name))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where variable_name is the name of your parameterized variable and field_name is the name of field containing the values to pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want a chart with user selected dimensions then your method of passing a value to a set analysis will not work (it will filter on the value, not have different dimension). To have user selected dimensions, use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=field_name) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the calculated dimensioni in the chart where field_name contains the list of field names for the user to select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 22:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386376#M144303</guid>
      <dc:creator />
      <dc:date>2013-02-26T22:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386377#M144304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not getting resolved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Field_Name&amp;nbsp; dragged into my chart dimension and when i put this into the function it does not get resolved with the dimension in ther pivot table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 22:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386377#M144304</guid>
      <dc:creator />
      <dc:date>2013-02-26T22:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386378#M144305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want the dimension value in the expression? The expression are calculated for each dimension value so there usually is no need to know the dimension value. If your chart has field_name as the dimension, the expressions will be calculated for every value in dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 22:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386378#M144305</guid>
      <dc:creator />
      <dc:date>2013-02-26T22:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386379#M144306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunatleyt Qlikview has no real way of calculating complex calculations and my equation is now working for PErcent rank for calculating returns over time through geometric linking. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qlikview doesnt have this capability and lacks alot of calculations and abilities and you can break its mold in minutes. I would of loved to not have to use this method of paramater but now I have no choce and need it. And the support that Qlikview offers in the past 5 months (Questions answered - 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the only thing i have left to finish &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 22:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386379#M144306</guid>
      <dc:creator />
      <dc:date>2013-02-26T22:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386380#M144307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone Answer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 23:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386380#M144307</guid>
      <dc:creator />
      <dc:date>2013-02-26T23:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386381#M144308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be no problem passing the Dimension value to a function.&amp;nbsp; For example, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(vFunction(DimField))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will pass the value of DimField to the variable function. However, based on your earlier post, it looks like you are trying to use the passed value in a Set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Sum({&amp;lt;X={$1}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set expressions can't be modified on a row by row basis in this way. The Set is selected for the whole chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing that what you are trying to accomplish is to widen the dimension for your calculation. That is, for a chart row with Dim1, Dim2, Dim3, you want to sum(Value) for Dim1. The correct way to do that is with an aggr() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=aggr(Sum(Value), Dim1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I get it right? If not could you post some more details on the chart dims and specifically what you compute?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 13:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386381#M144308</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-02-27T13:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386382#M144309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using aggr the problem is without using the set analysis in the each item the value is incorrect &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Solving for the following to be the same with and without the Set analysis&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FirstSortedValue({&amp;lt;Inv={"=sum(aggr(exp(sum({&amp;lt;GroupName={$1}&amp;gt;} log(1+Pricing)))-1,Inv, GroupName)) &amp;lt; &lt;BR /&gt; $(=(exp(SUM(aggr(log(1+SUM({&amp;lt;GroupName={$1}&amp;gt;}Value1)/SUM({&amp;lt;GroupName={$1}&amp;gt;}Value2))&lt;BR /&gt; , GroupName, BusinessDate)))-1))&lt;BR /&gt; "}&amp;gt;}&lt;BR /&gt; (aggr(exp(sum({&amp;lt;GroupName={$1}&amp;gt;}log(1+Pricing)))-1,Inv, GroupName))&lt;BR /&gt;,-(aggr(exp( sum({&amp;lt;GroupName={$1}&amp;gt;} log(1+Pricing)))-1,Inv, GroupName))&lt;BR /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 13:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386382#M144309</guid>
      <dc:creator />
      <dc:date>2013-02-27T13:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386383#M144310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way to do row by row conditional is with if() instead of Set Analysis. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(GroupName=$1, Value))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might that work for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 14:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386383#M144310</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-02-27T14:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386384#M144311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats what Im trying to avoid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 14:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/386384#M144311</guid>
      <dc:creator />
      <dc:date>2013-02-27T14:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How TO pass Dimension from Chart to Function Call Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/1621761#M445834</link>
      <description>&lt;P&gt;I have a similar issue and i have posted it in the New to Qliksense forum where I ideally want to pass the dimension value to the set analysis part of the expression like this&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Vintage={'$(=$(vMaxVinNum(Mkt_Name)))'}&amp;gt;}Measure)&lt;/P&gt;&lt;P&gt;where vMaxVinNum=max({&amp;lt;Market={$1}&amp;gt;}VintageNumber)&lt;/P&gt;&lt;P&gt;I understand that the set analysis is calculated just once per chart but aggr doesn't work either.&lt;/P&gt;&lt;P&gt;because each market has a different value for max(Vintage) but the set analysis sees only one value.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;My Post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/How-to-pass-dimension-value-to-a-measure-in-set-analysis-within/td-p/1621727" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/How-to-pass-dimension-value-to-a-measure-in-set-analysis-within/td-p/1621727&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 20:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-TO-pass-Dimension-from-Chart-to-Function-Call-Expression/m-p/1621761#M445834</guid>
      <dc:creator>sabreyals</dc:creator>
      <dc:date>2019-09-09T20:48:34Z</dc:date>
    </item>
  </channel>
</rss>

