<?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 Get two specific values from different tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-two-specific-values-from-different-tables/m-p/1817405#M66952</link>
    <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;I'm trying to develop a chart for a dashboard. I have two different tables with the same common key (but that key has different names in the different tables (wallet &amp;amp; bonus_receiver)).&lt;/P&gt;&lt;P&gt;Basically in one table, the PK is "wallet" and in the second one, it is "bonus_receiver" (also a wallet id). In both tables, there are multiple lines with transactions for those wallets with the amounts. I can sum the amount of all transactions and aggregate it per wallet and per bonus_receiver.&lt;/P&gt;&lt;P&gt;I want to do this subtraction: sum(amount per wallet) - sum(amount per bonusi_receiver). All this per specific wallet in order to have the difference between both tables per wallet. As I'm trying to do this in a chart, I want the x axis (dimension) to be the wallet id (that can be the wallet field as well as the bonusi_receiver once they have the same values) and the measure I want that to be the substraction.&lt;/P&gt;&lt;P&gt;How can I do it? I believe I need to pick the wallet field in the first table and search that value in the second table but when I try it runs out of time.&lt;/P&gt;&lt;P&gt;I'm attaching a print of the two different tables and the 4 fields I'm talking about so you can understand. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 14:28:54 GMT</pubDate>
    <dc:creator>tomasfsa</dc:creator>
    <dc:date>2021-06-23T14:28:54Z</dc:date>
    <item>
      <title>Get two specific values from different tables</title>
      <link>https://community.qlik.com/t5/App-Development/Get-two-specific-values-from-different-tables/m-p/1817405#M66952</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;I'm trying to develop a chart for a dashboard. I have two different tables with the same common key (but that key has different names in the different tables (wallet &amp;amp; bonus_receiver)).&lt;/P&gt;&lt;P&gt;Basically in one table, the PK is "wallet" and in the second one, it is "bonus_receiver" (also a wallet id). In both tables, there are multiple lines with transactions for those wallets with the amounts. I can sum the amount of all transactions and aggregate it per wallet and per bonus_receiver.&lt;/P&gt;&lt;P&gt;I want to do this subtraction: sum(amount per wallet) - sum(amount per bonusi_receiver). All this per specific wallet in order to have the difference between both tables per wallet. As I'm trying to do this in a chart, I want the x axis (dimension) to be the wallet id (that can be the wallet field as well as the bonusi_receiver once they have the same values) and the measure I want that to be the substraction.&lt;/P&gt;&lt;P&gt;How can I do it? I believe I need to pick the wallet field in the first table and search that value in the second table but when I try it runs out of time.&lt;/P&gt;&lt;P&gt;I'm attaching a print of the two different tables and the 4 fields I'm talking about so you can understand. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 14:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-two-specific-values-from-different-tables/m-p/1817405#M66952</guid>
      <dc:creator>tomasfsa</dc:creator>
      <dc:date>2021-06-23T14:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get two specific values from different tables</title>
      <link>https://community.qlik.com/t5/App-Development/Get-two-specific-values-from-different-tables/m-p/1817524#M66969</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think doing join between the two tables using wallet and bonus receiver will resolve the issue.&lt;/P&gt;&lt;P&gt;With that the new table will have wallet, sum(amount per wallet), sum(amount per bonus receiver) which makes the subtraction easy.&lt;/P&gt;&lt;P&gt;Hope this will help. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 07:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-two-specific-values-from-different-tables/m-p/1817524#M66969</guid>
      <dc:creator>meghana2006</dc:creator>
      <dc:date>2021-06-24T07:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get two specific values from different tables</title>
      <link>https://community.qlik.com/t5/App-Development/Get-two-specific-values-from-different-tables/m-p/1817706#M66985</link>
      <description>&lt;P&gt;But I was trying to solve this without changing anything from the backend script. Only from an expression in the chart functionalities. Any idea?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 18:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-two-specific-values-from-different-tables/m-p/1817706#M66985</guid>
      <dc:creator>tomasfsa</dc:creator>
      <dc:date>2021-06-24T18:45:36Z</dc:date>
    </item>
  </channel>
</rss>

