<?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: TOTALMTD and USERELATIONSHIP in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALMTD-and-USERELATIONSHIP/m-p/1604346#M32209</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280598" data-lia-user-login="cbailey92" class="lia-mention lia-mention-user"&gt;cbailey92&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The logic of your measure appears correct to me.&lt;/P&gt;
&lt;P&gt;It is simultaneously applying a MTD filter on your 'calendar' table, and activating the relationship with the [Quote Won Date] column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested your measure in a small sample data model and it gave the expected result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you post either a link to a shareable PBIX or some some sample data and the result you are getting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2021 01:21:40 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2021-01-18T01:21:40Z</dc:date>
    <item>
      <title>TOTALMTD and USERELATIONSHIP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALMTD-and-USERELATIONSHIP/m-p/1603987#M32184</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate a MTD value based on a date column from my 'Quotes' table that is different to the date column that has an active relationship with my calendar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I need to use some sort of combination of TOTALMTD and USERELATIONSHIP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calculating a value from my 'Quotes' table. The 'Quotes' table has a 'Created Date' column, which is my active relationship with my calendar table, and a 'Quote Won Date', which is what I want my month-to-date calculation to work from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have an inactive relationship established in my model between my calendar table and the 'Quote Won Date'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is something I have tried which does not work but might illustrate what I am trying to calculate:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MTD Value of Quotes Won by Quote Won Date = 
    CALCULATE([Value of Quotes Won],DATESMTD('calendar'[Reporting Date]),USERELATIONSHIP(quoted_opportunities_and_quotes_data[Quote Won Date],'calendar'[Reporting Date]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate any help anyone can offer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 18:30:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALMTD-and-USERELATIONSHIP/m-p/1603987#M32184</guid>
      <dc:creator>cbailey92</dc:creator>
      <dc:date>2021-01-17T18:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALMTD and USERELATIONSHIP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALMTD-and-USERELATIONSHIP/m-p/1604346#M32209</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280598" data-lia-user-login="cbailey92" class="lia-mention lia-mention-user"&gt;cbailey92&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The logic of your measure appears correct to me.&lt;/P&gt;
&lt;P&gt;It is simultaneously applying a MTD filter on your 'calendar' table, and activating the relationship with the [Quote Won Date] column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested your measure in a small sample data model and it gave the expected result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you post either a link to a shareable PBIX or some some sample data and the result you are getting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 01:21:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALMTD-and-USERELATIONSHIP/m-p/1604346#M32209</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2021-01-18T01:21:40Z</dc:date>
    </item>
  </channel>
</rss>

