<?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: FILTER() makes USERELATIONSHIP() superfluous? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FILTER-makes-USERELATIONSHIP-superfluous/m-p/2374353#M61072</link>
    <description>&lt;P&gt;Thanks for the feedback. I worded that in a misleading way: I didn't mean that USERELATIONSHIP was generally redundant. I just had the impression that it would seemingly not be necessary in this context of the FILTER function. Is that correct?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 07:22:57 GMT</pubDate>
    <dc:creator>tez</dc:creator>
    <dc:date>2022-03-04T07:22:57Z</dc:date>
    <item>
      <title>FILTER() makes USERELATIONSHIP() superfluous?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FILTER-makes-USERELATIONSHIP-superfluous/m-p/2373025#M60983</link>
      <description>&lt;P&gt;I have two tables (simplified):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A: StartDate, EndDate, ...&lt;/P&gt;&lt;P&gt;Table B (Datetable): Date, ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A StartDate has an active relationship to Table B Date, Table A EndDate has an inactive relationship to Table B Date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally I have two calculated columns in Table B:&lt;/P&gt;&lt;P&gt;X =&amp;nbsp;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;('&lt;/SPAN&gt;&lt;SPAN&gt;Table A'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Table A'[StartDate]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'Table B'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Y =&amp;nbsp;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;('&lt;/SPAN&gt;&lt;SPAN&gt;Table A'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Table A'[EndDate]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'Table B'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;It looks like the result is correct. However, I would have guessed that for the second statement (calculation of Y) I would have actually needed the USERELATIONSHIP() function; apparently that is not necessary. Can anyone judge or explain this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 15:35:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FILTER-makes-USERELATIONSHIP-superfluous/m-p/2373025#M60983</guid>
      <dc:creator>tez</dc:creator>
      <dc:date>2022-03-03T15:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: FILTER() makes USERELATIONSHIP() superfluous?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FILTER-makes-USERELATIONSHIP-superfluous/m-p/2373618#M61016</link>
      <description>&lt;P&gt;There are multiple ways to propagate filters in DAX. That doesn't mean one or the other is "superfluous".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The biggest difference is that FILTER is flexible but virtual whereas USERELATIONSHIP is more limited but physical.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend this article which covers multiple filter propagation techniques and compares their performance:&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 21:34:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FILTER-makes-USERELATIONSHIP-superfluous/m-p/2373618#M61016</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-03-03T21:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: FILTER() makes USERELATIONSHIP() superfluous?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FILTER-makes-USERELATIONSHIP-superfluous/m-p/2374353#M61072</link>
      <description>&lt;P&gt;Thanks for the feedback. I worded that in a misleading way: I didn't mean that USERELATIONSHIP was generally redundant. I just had the impression that it would seemingly not be necessary in this context of the FILTER function. Is that correct?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 07:22:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FILTER-makes-USERELATIONSHIP-superfluous/m-p/2374353#M61072</guid>
      <dc:creator>tez</dc:creator>
      <dc:date>2022-03-04T07:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: FILTER() makes USERELATIONSHIP() superfluous?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FILTER-makes-USERELATIONSHIP-superfluous/m-p/2375339#M61138</link>
      <description>&lt;P&gt;The relationships are not being used with the way your calculated columns are written. Since there isn't a CALCULATE transforming the row context to filter context, Table A isn't filtered by Table B except as you explicitly define the filter, so which relationship is active doesn't affect the calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This wouldn't work (and couldn't be written) quite the same way if these were measures instead of calculated columns.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 15:54:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FILTER-makes-USERELATIONSHIP-superfluous/m-p/2375339#M61138</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-03-04T15:54:20Z</dc:date>
    </item>
  </channel>
</rss>

