<?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: Difference between two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/726713#M1574</link>
    <description>&lt;P&gt;I create a new table for Account Name and&amp;nbsp;make&amp;nbsp;1:many relationships from Account Name to tables A and B.&lt;/P&gt;&lt;P&gt;Finally,getting the right value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 01:46:20 GMT</pubDate>
    <dc:creator>Ireneliu</dc:creator>
    <dc:date>2019-06-28T01:46:20Z</dc:date>
    <item>
      <title>Difference between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/718347#M1290</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about the diference between two tables.&lt;/P&gt;&lt;P&gt;A Table is for&amp;nbsp;department's actual results.&lt;/P&gt;&lt;P&gt;B Table is for&amp;nbsp;department's budget.&lt;/P&gt;&lt;P&gt;When the&amp;nbsp;actual results have a value, I can't get a correct value, even no value.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to have values by month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please suggest the DAX measure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 02:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/718347#M1290</guid>
      <dc:creator>Ireneliu</dc:creator>
      <dc:date>2019-06-19T02:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/719196#M1309</link>
      <description>&lt;P&gt;can you share your current syntax, and the underlying tables?&lt;/P&gt;
&lt;P&gt;as described here&lt;BR /&gt;&lt;LI-MESSAGE title="How to Get Your Question Answered Quickly" uid="38490" url="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/m-p/38490#U38490"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:35:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/719196#M1309</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-06-19T15:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/719594#M1346</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="10823" data-lia-user-login="Stachu" class="lia-mention lia-mention-user"&gt;Stachu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was my first time publishing a question here, sorry for the&amp;nbsp;&lt;SPAN&gt;incomplete information.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Columns for Table A are Department、AccountName、Date、accountingcurrencyamount&lt;/P&gt;&lt;P&gt;Columns for Table B are Department、AccountName、Date、budget&lt;/P&gt;&lt;P&gt;The relationship between two tables is "AccountName".&lt;BR /&gt;(Cardinality:many to many. Cross filter direction:both.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Measure for actual results = CALCULATE(SUM('A'[accountingcurrencyamount]),&lt;/P&gt;&lt;P&gt;FILTER('A',[AccountName]="Salary"|| [AccountName]="Retirement pension")&lt;/P&gt;&lt;P&gt;*Measure for budget = CALCULATE(SUM('B'[departmentbudget]),&lt;/P&gt;&lt;P&gt;FILTER('B',[AccountName]="Salary"|| [AccountName]="Retirement pension")&lt;/P&gt;&lt;P&gt;I used "FILTER" to choose the AccountName I need.&lt;/P&gt;&lt;P&gt;*Measure for difference = [Measure for actual results]-[Measure for budget]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried to change the relationship become Date yesterday, and got the following result.&lt;/P&gt;&lt;P&gt;I still can't get the right values when actual results have value...&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 02:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/719594#M1346</guid>
      <dc:creator>Ireneliu</dc:creator>
      <dc:date>2019-06-20T02:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/719719#M1353</link>
      <description>&lt;P&gt;do the following:&lt;/P&gt;
&lt;P&gt;1) create a new table for calendar, e.g.&lt;/P&gt;
&lt;PRE&gt;Calendar = CALENDARAUTO()&lt;/PRE&gt;
&lt;P&gt;2) mark the Calendar tables as Date table&lt;BR /&gt;3) create 1:many&amp;nbsp; joins between Calendar table and both budget and actuals&lt;/P&gt;
&lt;P&gt;4) use the month from calendar table in the visual&lt;/P&gt;
&lt;P&gt;5) set the join between A &amp;amp; B tables to be done on Department&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 05:02:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/719719#M1353</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-06-20T05:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/720819#M1392</link>
      <description>&lt;P&gt;I followed up the steps you suggested but having a trouble in step 3.&lt;/P&gt;&lt;P&gt;The relationship between&amp;nbsp;Calendar table and both budget and actuals can't be active at the same time.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 02:49:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/720819#M1392</guid>
      <dc:creator>Ireneliu</dc:creator>
      <dc:date>2019-06-21T02:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/721745#M1412</link>
      <description>&lt;P&gt;Hmm, that's probably because of the many:many relationship&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you add a new table for Departments, e.g. like this:&lt;/P&gt;
&lt;PRE&gt;Departments =
DISTINCT (
    UNION ( VALUES ( TableA[Departments] ), VALUES ( TableB[Departments] ) )
)
&lt;/PRE&gt;
&lt;P&gt;deactivate/remove your existing many:many relationship between Actuals and Budgets&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;create new 1:many relationships from Departments to tables A and B&lt;/P&gt;
&lt;P&gt;do the same for the Calendar table&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 10:12:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/721745#M1412</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-06-22T10:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/725664#M1532</link>
      <description>&lt;P&gt;Sorry for late reply.&lt;/P&gt;&lt;P&gt;I tried to change the relationships.&lt;/P&gt;&lt;P&gt;However, when I choose&amp;nbsp;&lt;STRONG&gt;Retirement pension&lt;/STRONG&gt; to make sure the difference value is right or not,&lt;BR /&gt;finding out the value of Actural results of &lt;STRONG&gt;Salary&lt;/STRONG&gt; is included.&lt;/P&gt;&lt;P&gt;Is it because of there is no relationship about AccountName between &lt;SPAN&gt;table A and B&lt;/SPAN&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 04:13:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/725664#M1532</guid>
      <dc:creator>Ireneliu</dc:creator>
      <dc:date>2019-06-27T04:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/726713#M1574</link>
      <description>&lt;P&gt;I create a new table for Account Name and&amp;nbsp;make&amp;nbsp;1:many relationships from Account Name to tables A and B.&lt;/P&gt;&lt;P&gt;Finally,getting the right value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 01:46:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-tables/m-p/726713#M1574</guid>
      <dc:creator>Ireneliu</dc:creator>
      <dc:date>2019-06-28T01:46:20Z</dc:date>
    </item>
  </channel>
</rss>

