<?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: Measure with Calculate/filter over 2 different tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2187288#M51030</link>
    <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Please check the relationship.&lt;BR /&gt;If it doesn't work for you please share the model after removing the sensitive data.&lt;BR /&gt;&lt;BR /&gt;Thank You&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 11:12:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-12T11:12:01Z</dc:date>
    <item>
      <title>Measure with Calculate/filter over 2 different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2187019#M51018</link>
      <description>&lt;P&gt;Dear co-users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PowerBI&amp;nbsp; for several months now, had a course and learned a lot from this forum. But I'm still a beginner and this issue I cannot solve, nor find a solution on the internet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my model, there are 2 measures that are calculated over different tables. These measures are plotted in a line graph.&amp;nbsp; Seperately they work fine, but when added it gives strange results. As you can see the **bleep**. booked part is not taken righly in the new measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 1 :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Booked = Calculate(&lt;/SPAN&gt;&lt;SPAN&gt; sum('GLS actual'[Booked]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter(allselected('GLS Actual'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'GLS actual'[Posting Date]&amp;lt;=max('GLS actual'[Posting Date])&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure 2:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;Committed = Calculate(&lt;/SPAN&gt;&lt;SPAN&gt; sum(Committment[Commitment]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter(ALLSELECTED(Committment),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Committment'[Debit date]&amp;lt;=max(Committment[Debit date])&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To add them, (measure 3) I just add the measures itself, or copy the formulas:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;assigned =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Calculate(&lt;/SPAN&gt;&lt;SPAN&gt; sum('GLS actual'[Booked]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter(allselected('GLS Actual'),&lt;/SPAN&gt;&lt;SPAN&gt; 'GLS actual'[Posting Date]&amp;lt;=max('GLS actual'[Posting Date])&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;+Calculate(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sum(Committment[Commitment]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter(ALLSELECTED(Committment),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Committment'[Debit date]&amp;lt;=max(Committment[Debit date])&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I add measures 1 and 2 properly?&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:08:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2187019#M51018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-17T14:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with Calculate/filter over 2 different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2187135#M51025</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can try the below code.&lt;BR /&gt;Assigned = Booked + Committed&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 09:51:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2187135#M51025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-12T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with Calculate/filter over 2 different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2187194#M51028</link>
      <description>&lt;P&gt;Hi Tarun, I tried that, but gives the same result&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 10:19:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2187194#M51028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-12T10:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with Calculate/filter over 2 different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2187288#M51030</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Please check the relationship.&lt;BR /&gt;If it doesn't work for you please share the model after removing the sensitive data.&lt;BR /&gt;&lt;BR /&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 11:12:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2187288#M51030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-12T11:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with Calculate/filter over 2 different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2191729#M51258</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi Anonymous&lt;/LI-USER&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 05:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2191729#M51258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-16T05:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with Calculate/filter over 2 different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2194552#M51373</link>
      <description>&lt;P&gt;The information is not to be public, so I cannot share. Meanwhile I found a solution from a colleague:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;**bleep**.assigned = CALCULATE([**bleep**. Booked], filter(allselected('Date'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Date'[Date]&amp;lt;=max('Date'[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)+ CALCULATE([**bleep**. Committed], filter(allselected('Date'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Date'[Date]&amp;lt;=max('Date'[Date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:10:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2194552#M51373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-17T14:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with Calculate/filter over 2 different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2195858#M51425</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Ok, thanks for sharing the solution. I think it will be helpful if others faced a similar scenario.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 06:06:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-Calculate-filter-over-2-different-tables/m-p/2195858#M51425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-18T06:06:31Z</dc:date>
    </item>
  </channel>
</rss>

