<?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: Using Dynamic / Calculated Data from One Chart to Populate Another in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242545#M24692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure this will work because [Running Total Clicks] is not calculated in the load script. This value unfortunately needs to be dynamic as well because there may be certain weeks that we want to exclude.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2017 14:18:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-13T14:18:10Z</dc:date>
    <item>
      <title>Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242543#M24690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've created a table (TableA) in my app that has dimensions Week Ending and Keyword, and for the measures, one is a running total of Clicks by week and then another PastThreshold? where it is equal to 1 when the Running Total is the first value for that Keyword is greater than the Click Threshold, which is a dynamic variable (and in the example below is equal to 125 but can be changed by the user).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to do, is populate another table (TableB) with only the weeks (and associated Clicks) where PastThreshold? = 1 in TableA. I cannot do this in the load script because the actual threshold is dynamic (vClickThreshold = 125 upon load, but there is an input box where users can change the value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example in Excel of what I'm trying to do -- I'm basically trying to replicate a vlookup (or index/match), but from one Chart Table to another rather than from a Table loaded in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TableA.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149342_TableA.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TableB.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/149343_TableB.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 22:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242543#M24690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-12T22:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242544#M24691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't retrieve calculated values across any charts or tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have to do is doing the calculation with the fewer dimensions - and for your case it is rather straightforward:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the a new table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Use both the dimensions &lt;STRONG&gt;keyword&lt;/STRONG&gt; and &lt;STRONG&gt;week&lt;/STRONG&gt; of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Then use this expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;FirstSortedValue( {&amp;lt;uid={"=Sum([Running Total Clicks])&amp;gt;=[~Treshold]"}&amp;gt;} [Running Total Clicks] , -week )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get this expression to work you need to have a unique ID in your table. I suggest that you have a calculated value like RowNo() AS &lt;STRONG&gt;uid&lt;/STRONG&gt; in your load statement in your load script. You can't use week because it is not unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-13 01_38_04-Qlik Sense Desktop.png" class="jive-image image-1" src="/legacyfs/online/149334_2017-01-13 01_38_04-Qlik Sense Desktop.png" style="height: 124px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 00:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242544#M24691</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-13T00:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242545#M24692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure this will work because [Running Total Clicks] is not calculated in the load script. This value unfortunately needs to be dynamic as well because there may be certain weeks that we want to exclude.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 14:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242545#M24692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T14:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242546#M24693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can calculate it in the first chart it shouldn't be a problem using the same or similar calculation replacing the Sum( [Running Total Clicks] ) which I suggested....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to provide a little bit more information if you want more help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242546#M24693</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-13T16:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242547#M24694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe it only works in the first chart because it's showing every week. To calculate Running Total, I'm using RangeSum(Above(...)), which doesn't work when I only want one week showing. Here's what I'm talking about --&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example qs.PNG" class="jive-image image-1" src="/legacyfs/online/149429_example qs.PNG" style="height: 414px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Measure 1 I have the formula "FirstSortedValue( {&amp;lt;uid={"=Sum([Running Total Clicks])&amp;gt;=[~vClickThreshold]"}&amp;gt;} [Running Total Clicks] , -week )" which I realize doesn't work because [Running Total Clicks] is not a valid column name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Measure 2 I have "FirstSortedValue( {&amp;lt;uid={"=Sum(RangeSum(Above(Clicks,0,RowNo())))&amp;gt;=[~vClickThreshold]"}&amp;gt;} RangeSum(Above(Clicks,0,RowNo())) , -week )" where I replaced [Running Total Clicks] with the formula from Table A. If I delete Measure 1 and only leave the dimensions and Measure 2, all the currently selected weeks show up, which is not what I want --&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table b qs.PNG" class="jive-image image-2" height="363" src="/legacyfs/online/149430_table b qs.PNG" style="height: 362.84px; width: 315px;" width="315" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how to attach my sample qvf file otherwise I would!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242547#M24694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T16:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242548#M24695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to click on the link in the upper right-hand corner "Use advanced editor" ... to be able to attach a QVF or other type of file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-13 18_14_48-Using Dynamic _ Calculated Data from One Chart ... _ Qlik Community.png" class="jive-image image-1" src="/legacyfs/online/149439_2017-01-13 18_14_48-Using Dynamic _ Calculated Data from One Chart ... _ Qlik Community.png" style="height: 142px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will find a clickable paperclip with the text "Attach" in the lower right hand corner which can be used to attach files with...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-13 18_16_35-Reply to Re_ Using Dynamic _ Calculated Data f... _ Qlik Community.png" class="jive-image image-2" src="/legacyfs/online/149440_2017-01-13 18_16_35-Reply to Re_ Using Dynamic _ Calculated Data f... _ Qlik Community.png" style="height: 398px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 17:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242548#M24695</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-13T17:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242549#M24696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha. Attached now!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 17:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242549#M24696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T17:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242550#M24697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this -&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149449_Capture.PNG" style="height: 161px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 19:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242550#M24697</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-01-13T19:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242551#M24698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, so that's what that is for!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="!.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149451_!.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 20:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242551#M24698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T20:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242552#M24699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you know how I can get a Total in the Totals row for Measure 1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 21:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242552#M24699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T21:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic / Calculated Data from One Chart to Populate Another</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242553#M24700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the measure section, select 'SUM' in total function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 21:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Dynamic-Calculated-Data-from-One-Chart-to-Populate-Another/m-p/1242553#M24700</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-01-13T21:45:27Z</dc:date>
    </item>
  </channel>
</rss>

