<?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 Comparing Difference between two columns in two different tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3102336#M109136</link>
    <description>&lt;P class="lia-align-left"&gt;Hello, I have two tables that I am needing to compare and find the difference between.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Specifically, the tables have one column that should have matching values (ticket numbers), if the ticket numbers match then it should calculate the difference in the volumn column between the two matching ticket numbers. If the ticket number has no match I would also like to be able to note that.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried a few different solutions on here in the last few days and can't seem to make it work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example data:&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;Table 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Ticket Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Volume Taken&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Ticket Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;333&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1/1/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1/5/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1/7/23&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;Table 2:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Ticket Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Volume&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Ticket Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;333&lt;/TD&gt;&lt;TD&gt;4.5&lt;/TD&gt;&lt;TD&gt;1/1/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;TD&gt;1/5/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1/7/23&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;Ideal Solution:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Matching Ticket Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Table One Volume&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Table Two Volume&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Difference&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;333&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;4.5&lt;/TD&gt;&lt;TD&gt;-.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;-2.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;444&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;Ideally, I would like these two tables to compare and be able to make a graph showing that Ticket 333 had a volume difference of .5, ticket 222 had a volume difference of 2, and on a separate graph show that ticket number 111 had no matches from the other table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is something like this possible? If so could someone help me get started with this? Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 21:05:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-27T21:05:19Z</dc:date>
    <item>
      <title>Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3102336#M109136</link>
      <description>&lt;P class="lia-align-left"&gt;Hello, I have two tables that I am needing to compare and find the difference between.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Specifically, the tables have one column that should have matching values (ticket numbers), if the ticket numbers match then it should calculate the difference in the volumn column between the two matching ticket numbers. If the ticket number has no match I would also like to be able to note that.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried a few different solutions on here in the last few days and can't seem to make it work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example data:&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;Table 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Ticket Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Volume Taken&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Ticket Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;333&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1/1/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1/5/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1/7/23&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;Table 2:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Ticket Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Volume&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Ticket Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;333&lt;/TD&gt;&lt;TD&gt;4.5&lt;/TD&gt;&lt;TD&gt;1/1/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;TD&gt;1/5/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1/7/23&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;Ideal Solution:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Matching Ticket Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Table One Volume&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Table Two Volume&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Difference&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;333&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;4.5&lt;/TD&gt;&lt;TD&gt;-.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;-2.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;444&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;Ideally, I would like these two tables to compare and be able to make a graph showing that Ticket 333 had a volume difference of .5, ticket 222 had a volume difference of 2, and on a separate graph show that ticket number 111 had no matches from the other table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is something like this possible? If so could someone help me get started with this? Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 21:05:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3102336#M109136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-27T21:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3102391#M109141</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how you get the difference...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Difference = SUM('Table 1'[Volume]) - SUM('Table 2'[Volume])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure Ticket Number is type Text or it won't work in your graph properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taylor&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 20:47:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3102391#M109141</guid>
      <dc:creator>TaylorPBI21</dc:creator>
      <dc:date>2023-02-27T20:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3102416#M109143</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;&lt;BR /&gt;Thank you for helping but I am needing to first match the values from one column before getting the difference between the correlating second columns.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So if Ticket Number has a matching value in the second table, I want to compare the volumes in the two tables that correspond to that specific ticket number.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 21:02:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3102416#M109143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-27T21:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3102599#M109152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First we need to create a relationship between the two tables, common Column is Tikcket number.&lt;/P&gt;&lt;P&gt;Second, we match the values or ticket numbers by creating calculated column so&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;m4 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_LookMtaches&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1&lt;/SPAN&gt;&lt;SPAN&gt;[Ticket Num]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Table2&lt;/SPAN&gt;&lt;SPAN&gt;[Ticket Num]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Table1&lt;/SPAN&gt;&lt;SPAN&gt;[Ticket Num]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;_LookMtaches&lt;BR /&gt;&lt;/SPAN&gt;Third we Calculate the difference =&amp;nbsp;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;M3 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(Table1[Volume])-&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(Table2[Volume]))&lt;BR /&gt;Finally Create your table so&lt;BR /&gt;M4, Volume from table 1, volume from table 2, M3.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please note: 1- you might have empty columns so Drag M4 to filter panel and choose is not blank.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2- When drag M4 to the summary table choose "don't summarize"&amp;nbsp;&lt;BR /&gt;I hope this helps and please check the answer if it is right&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Feb 2023 23:40:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3102599#M109152</guid>
      <dc:creator>galaamri</dc:creator>
      <dc:date>2023-02-27T23:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3103848#M109246</link>
      <description>&lt;P&gt;Hey Galaamri, thank you for being willing to help. I do believe this would be the solution if I could get the relationship to work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When creating m4, I get the error "The column 'table 2 [ticket number]' either doesn't exist or doesn't have a relationship to any table available in the current context".&lt;BR /&gt;&lt;BR /&gt;Extra info in case any of these help with solving the errors:&lt;BR /&gt;-I am attempting to create the calculated column column inside of table 1&lt;BR /&gt;-The ticket numbers from table 1 and table 2 will not match, a lot will but a lot will not. Some also include characters instead of just numbers. Both ticket columns are data type "text".&lt;BR /&gt;-When creating a relationship between the two before attempting to create m4, it makes a "many to many" relationship".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 14:24:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3103848#M109246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-28T14:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104022#M109260</link>
      <description>&lt;P&gt;Then there is other way to make this relationship works by creating a reference table (to just have the unique ticket numbers). to do this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Go to Power Query (Transform data), home, manage, then choose referece. you are creating a reference table1 based on the ticket number. then remove duplicate. then do the same for table2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect the reference table1 and table1 (This should have one to many relationship), and the mesaure would work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 15:27:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104022#M109260</guid>
      <dc:creator>galaamri</dc:creator>
      <dc:date>2023-02-28T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104152#M109266</link>
      <description>&lt;P&gt;Unfortunately it is still many to many relationship (I assume due to Table 1 will have ticket numbers table 2 doesn't have, and vice versa). But I am not entirely sure of the cause. But I do really appreciate the help.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 16:06:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104152#M109266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-28T16:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104158#M109268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create a dimension table that contains all ticket numbers. This can be created in power query or can be a calculated table using the following dax&lt;/P&gt;
&lt;P&gt;Tickets =&lt;BR /&gt;DISTINCT (&lt;BR /&gt;UNION (&lt;BR /&gt;ALLNOBLANKROW ( Table1[Ticket Num] ),&lt;BR /&gt;ALLNOBLANKROW ( Table2[Ticket Num] )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;then you apply the following measure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Difference =&lt;BR /&gt;COALESCE (&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( Tickets[Ticket Num] ),&lt;BR /&gt;CALCULATE (&lt;BR /&gt;VAR Val1 =&lt;BR /&gt;SUM ( Table1[Value] )&lt;BR /&gt;VAR Val2 =&lt;BR /&gt;SUM ( Table1[Value] )&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( Val1 &amp;lt;&amp;gt; BLANK () &amp;amp;&amp;amp; Val2 &amp;lt;&amp;gt; BLANK (), Val2 - Val1 )&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"No Match"&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 16:08:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104158#M109268</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-28T16:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104242#M109285</link>
      <description>&lt;P&gt;Hey there!&lt;BR /&gt;&lt;BR /&gt;I believe this almost has it. But at the moment it is showing the same difference for each ticket number. Let me know if anything stands out to you as something that needs changing. Thanks for your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 16:29:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104242#M109285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-28T16:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104266#M109291</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you created the relationship between the dimtable and the other two tables?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 16:33:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104266#M109291</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-28T16:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Difference between two columns in two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104330#M109306</link>
      <description>&lt;P&gt;That's what I was missing, thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 17:05:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Difference-between-two-columns-in-two-different-tables/m-p/3104330#M109306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-28T17:05:38Z</dc:date>
    </item>
  </channel>
</rss>

