<?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  do math across multiple tables and get value ? in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135042#M12973</link>
    <description>&lt;P&gt;And you want to create this in the datamodel, not to compute this on the fly in a chart right?&lt;BR /&gt;In this case, could share the structure of your different tables?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 15:57:42 GMT</pubDate>
    <dc:creator>vincent_ardiet_</dc:creator>
    <dc:date>2023-11-06T15:57:42Z</dc:date>
    <item>
      <title>How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135030#M12970</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;I m struggling how to resolve mathematical issue in Qlik&amp;nbsp; for some time h&lt;BR /&gt;&lt;BR /&gt;equation is simple :&amp;nbsp;&lt;BR /&gt;Budget - (Project_members n+1 * cost_rate * duration_in_their_timesheets) = "remaining budget"&lt;BR /&gt;This is simple equation which I can resolve on the paper easily in couple seconds.&lt;BR /&gt;&lt;BR /&gt;Project_budget is in table, where I dont have timesheet entries and project members.&lt;BR /&gt;Project_members are in different table than timesheet entries.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;All tables has common columns like project_title and project_id, with same data values&lt;BR /&gt;So the issue&amp;nbsp; - if I m "creating new field" it only allows me to do that in specific tables, but not get data from the other table.&amp;nbsp;&lt;BR /&gt;So how do I get calculation like that above ?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135030#M12970</guid>
      <dc:creator>HuggyBear</dc:creator>
      <dc:date>2023-11-06T15:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135039#M12972</link>
      <description>&lt;P&gt;Look into concatenating the tables together where they share dimensions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once they are in the same table, those calculations will be easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-ws&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135039#M12972</guid>
      <dc:creator>WaltShpuntoff</dc:creator>
      <dc:date>2023-11-06T15:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135042#M12973</link>
      <description>&lt;P&gt;And you want to create this in the datamodel, not to compute this on the fly in a chart right?&lt;BR /&gt;In this case, could share the structure of your different tables?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135042#M12973</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-11-06T15:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135044#M12974</link>
      <description>&lt;P&gt;Within the script you need to pull all needed fields/information into a single table - maybe with some mapping-tables.&lt;/P&gt;
&lt;P&gt;Simpler might be to do this calculation just within the UI - if the associations of the tables are suitable it's quite so simple like above described.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135044#M12974</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-11-06T15:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135047#M12975</link>
      <description>&lt;P&gt;Well, if that can be calculated in the overview and sheets on the fly, that would be awesome, but I dont have idea how to do that.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thing is that there is multiple projects - each of them has associated multiple members and each of these members has different cost rate and hours logged in the time sheet table.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135047#M12975</guid>
      <dc:creator>HuggyBear</dc:creator>
      <dc:date>2023-11-06T16:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135053#M12976</link>
      <description>&lt;P&gt;If you put the project in dimension, you can then use an expression like this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Sum(Budget) - (Count(Distinct Project_members)+1) * Sum(cost_rate * duration_in_their_timesheets))&lt;/FONT&gt;&lt;BR /&gt;But honestly this could be totally wrong depending on your datamodel.&lt;BR /&gt;Ideally if you could share 5-6 rows of each tables with dummy data, this will be much easier.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135053#M12976</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-11-06T16:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135055#M12977</link>
      <description>&lt;P&gt;In general could this be considered with something like:&lt;/P&gt;
&lt;P&gt;sum(aggr(YourCalculation, &lt;STRONG&gt;Project, Member&lt;/STRONG&gt;))&lt;/P&gt;
&lt;P&gt;whereby the calculation would be done on a project and member level and those results added (you may need further dimensionality in the aggr - maybe any period-information or whatever might relevant). By larger data-sets and/or complex objects such an approach could be slowdown the performance - but it's so simple that you could just try it before doing it within the script-level.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135055#M12977</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-11-06T16:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135061#M12978</link>
      <description>&lt;P&gt;This is pulled directly from the SQL database :&lt;BR /&gt;&lt;BR /&gt;One table is showing all project&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-06 171752.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119419i3B47132D0941E2BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-06 171752.png" alt="Screenshot 2023-11-06 171752.png" /&gt;&lt;/span&gt;Second table is who is working and assigned to the project and their cost rates&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-06 171701.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119420i07B23B6CE1EE7E13/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-06 171701.png" alt="Screenshot 2023-11-06 171701.png" /&gt;&lt;/span&gt;&lt;BR /&gt;And the last table is showing who is associated under current project.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-06 171543.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119418i8C119AC65B004BDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-06 171543.png" alt="Screenshot 2023-11-06 171543.png" /&gt;&lt;/span&gt;This is pulled directly from the SQL database.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135061#M12978</guid>
      <dc:creator>HuggyBear</dc:creator>
      <dc:date>2023-11-06T16:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135074#M12979</link>
      <description>&lt;P&gt;I don't understand why you are multiplying with the number of employees.&lt;BR /&gt;If you put projectid in dimension, and &lt;FONT face="courier new,courier"&gt;Sum(budget)-Sum(costamount*duration)&lt;/FONT&gt; as a measure, this should gives you your remaining budget isn't?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135074#M12979</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-11-06T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135091#M12980</link>
      <description>&lt;P&gt;Well, the idea from management was also to have an overview of who had the biggest impact based on the working hours to cost rate ratio, etc. You know, just to have a more granulated overview in Qlik. Another thing is that there are multiple people with different rates working under the same project. I understand that I can sum all the cost rates for a specific project and multiply by the hours spent on that project, but management would like to see something like, 'Okay, now show us how much of the budget was consumed by John and Mark from the entire pie.'&lt;/P&gt;
&lt;P&gt;But even if I wanted to implement that simpler function, where and how do I add it? This is all that I'm getting from the Insight Advisor, but I'm not sure where to find and add these functions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-06 192452.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119425i59E41B9D93A4E6BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-06 192452.png" alt="Screenshot 2023-11-06 192452.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 18:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135091#M12980</guid>
      <dc:creator>HuggyBear</dc:creator>
      <dc:date>2023-11-06T18:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135267#M12983</link>
      <description>&lt;P&gt;It's an illusion to expect that the Insight Advisor (like all the other hyped AI tools/logic) could solve challenges for you. If you could do everything yourself you would comprehend the capabilities of the tool and then you may use it as a valuable wizard to save time and efforts.&lt;/P&gt;
&lt;P&gt;What you are describing is to produce multiple views in regard to current- and budget-data in various granularity. (Nearly) everything should be possible with the shown table-structures - but not with a single object and/or a global expression else each view needs to be designed individually.&lt;/P&gt;
&lt;P&gt;Therefore I suggest to start classically by creating n table-charts (one after another) with the relevant dimensions and building the expressions step by step. Even if it seemed a bit&amp;nbsp;cumbersome - it's not because it are mostly necessary steps to validate the data-quality and the logic.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 07:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135267#M12983</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-11-07T07:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to  do math across multiple tables and get value ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135274#M12984</link>
      <description>&lt;P&gt;Yes start slowly.&lt;BR /&gt;Put the project as a dimension, then an expression with sum(Budget).&lt;BR /&gt;Then another expression with sum(&lt;SPAN&gt;duration), you will see that even if a user is affected on different project, this is hopefully&amp;nbsp;respected by Qlik.&lt;BR /&gt;The engine is also handling the cardinality between tables on a different manner as an SQL database which is more natural.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Play with different measures and see the results of combinations.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 08:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-do-math-across-multiple-tables-and-get-value/m-p/2135274#M12984</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-11-07T08:15:49Z</dc:date>
    </item>
  </channel>
</rss>

