<?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: SUMX help to use SUMX where rows from two tables must be subtracted. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-help-to-use-SUMX-where-rows-from-two-tables-must-be/m-p/2385897#M61807</link>
    <description>&lt;PRE&gt;Transaction Amount Measure = SUMX( 'transaction table',&lt;BR /&gt;var itemFees = CALCULATE( SUMX( RELATEDTABLE( 'items' ), 'items'[item registration fee]),&lt;BR /&gt;    NOT( 'items'[item type] IN { "court fee", "registration fee" } )&lt;BR /&gt;return itemFees + 'transaction table'[transaction amount]&lt;BR /&gt;)&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Mar 2022 11:01:39 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-03-10T11:01:39Z</dc:date>
    <item>
      <title>SUMX help to use SUMX where rows from two tables must be subtracted.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-help-to-use-SUMX-where-rows-from-two-tables-must-be/m-p/2385705#M61787</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;I'm having trouble solving this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Transaction table and an item table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In my Transaktion tabel i have a lot og&amp;nbsp;columns where i wanna use the 'transaktion amount' and 'transaktion key'&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the Items table i wanna use the 'transaktion key' and the 'item registration fee'&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I want to sum 'transaction amout', for the whole transaktion table, but where the transaktion wich is&amp;nbsp;registered i the items table as a "court_fee or 'registration' are deducted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if a transaktion is a court_fee og a registration they should NOT be a part of the sum of the transaktion amount.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sorted so. both tables are only march 2022 - Where the first photo is the items table and the second is the transaktion table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 09:38:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-help-to-use-SUMX-where-rows-from-two-tables-must-be/m-p/2385705#M61787</guid>
      <dc:creator>daneilroy</dc:creator>
      <dc:date>2022-03-10T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX help to use SUMX where rows from two tables must be subtracted.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-help-to-use-SUMX-where-rows-from-two-tables-must-be/m-p/2385897#M61807</link>
      <description>&lt;PRE&gt;Transaction Amount Measure = SUMX( 'transaction table',&lt;BR /&gt;var itemFees = CALCULATE( SUMX( RELATEDTABLE( 'items' ), 'items'[item registration fee]),&lt;BR /&gt;    NOT( 'items'[item type] IN { "court fee", "registration fee" } )&lt;BR /&gt;return itemFees + 'transaction table'[transaction amount]&lt;BR /&gt;)&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 11:01:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-help-to-use-SUMX-where-rows-from-two-tables-must-be/m-p/2385897#M61807</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-10T11:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX help to use SUMX where rows from two tables must be subtracted.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-help-to-use-SUMX-where-rows-from-two-tables-must-be/m-p/2386037#M61818</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365573" data-lia-user-login="daneilroy" class="lia-mention lia-mention-user"&gt;daneilroy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Would you please share a screenshot of your data model?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 11:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-help-to-use-SUMX-where-rows-from-two-tables-must-be/m-p/2386037#M61818</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-10T11:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX help to use SUMX where rows from two tables must be subtracted.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-help-to-use-SUMX-where-rows-from-two-tables-must-be/m-p/2386537#M61850</link>
      <description>&lt;P&gt;Hello John!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you very much! it worked! i just had to do some formating but everything else is perfect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 14:27:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-help-to-use-SUMX-where-rows-from-two-tables-must-be/m-p/2386537#M61850</guid>
      <dc:creator>daneilroy</dc:creator>
      <dc:date>2022-03-10T14:27:26Z</dc:date>
    </item>
  </channel>
</rss>

