<?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 Matrix table filter by inactive relationship in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2452219#M66045</link>
    <description>&lt;P&gt;Hi, Hoping for some help on this issue...&lt;BR /&gt;&lt;BR /&gt;I have a matrix table with a date field in the rows and then a text description and account number in the value sections and these fields are from my main data table.&lt;BR /&gt;&lt;BR /&gt;I then have a slicer with week commencing from my date dimension table and I want to be able to select a week and filter the matrix table to show me all records within that selected week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I have is that the date used in the matrix table is not the active relationship so when I select the week it won't filter correctly. I guess I have to create a measure and use the function USERRELATIONSHIP but not sure how to write the DAX because it's not really a calculation in the table but rather just values that I want to filter down based on the date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how I solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 11:07:48 GMT</pubDate>
    <dc:creator>Ben81</dc:creator>
    <dc:date>2022-04-12T11:07:48Z</dc:date>
    <item>
      <title>Matrix table filter by inactive relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2452219#M66045</link>
      <description>&lt;P&gt;Hi, Hoping for some help on this issue...&lt;BR /&gt;&lt;BR /&gt;I have a matrix table with a date field in the rows and then a text description and account number in the value sections and these fields are from my main data table.&lt;BR /&gt;&lt;BR /&gt;I then have a slicer with week commencing from my date dimension table and I want to be able to select a week and filter the matrix table to show me all records within that selected week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I have is that the date used in the matrix table is not the active relationship so when I select the week it won't filter correctly. I guess I have to create a measure and use the function USERRELATIONSHIP but not sure how to write the DAX because it's not really a calculation in the table but rather just values that I want to filter down based on the date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how I solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 11:07:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2452219#M66045</guid>
      <dc:creator>Ben81</dc:creator>
      <dc:date>2022-04-12T11:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table filter by inactive relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2452453#M66056</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358455" data-lia-user-login="Ben81" class="lia-mention lia-mention-user"&gt;Ben81&lt;/a&gt; , Example &lt;/P&gt;
&lt;P&gt;calculate( SUM(Sales[Sales Amount]),USERELATIONSHIP ('Table'2[CreateDate], 'Date'[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi" target="_blank"&gt;https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 12:31:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2452453#M66056</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-12T12:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table filter by inactive relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2452462#M66059</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Not sure how this helps me? It's not a calculation I'm trying to perform. I just have a table with a list of dates and text values that I want to filter based on a inactive relationship.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 12:35:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2452462#M66059</guid>
      <dc:creator>Ben81</dc:creator>
      <dc:date>2022-04-12T12:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table filter by inactive relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2452475#M66061</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;You can just make another copy of your date table and connect to the inactive date in your fact table. If your Date Table is names "Dates" then&lt;/P&gt;&lt;P&gt;New Table&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Dates II = &lt;/SPAN&gt;&lt;SPAN&gt;Dates&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You can have plenty of date tables to play role dimensions.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Apr 2022 12:42:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2452475#M66061</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-12T12:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table filter by inactive relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2461247#M66627</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358455" data-lia-user-login="Ben81" class="lia-mention lia-mention-user"&gt;Ben81&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a measure like so:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = IF ( MAX('FactTable'[Date]) IN VALUES('DateDim'[Date]),1)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then, you can use it as the "&lt;A href="https://docs.microsoft.com/power-bi/create-reports/power-bi-report-add-filter?tabs=powerbi-desktop#add-a-filter-to-a-visual" target="_blank" rel="noopener"&gt;Filters on this visual&lt;/A&gt;" and set it as "is 1".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this not work, you can put the measure into your Matrix visual and then turn off word wrap in the matrix setting and drag the field of the measure to hide it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 09:31:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/2461247#M66627</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2022-04-18T09:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table filter by inactive relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/3395804#M128092</link>
      <description>&lt;P&gt;Hello Icey&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried your solution for a similar issue I am currently facing, but unfortunately, it doesn't disable the active relationship. As a result, it seems like two filters are being applied simultaneously. Do you have any ideas on how I can resolve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 22:38:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-filter-by-inactive-relationship/m-p/3395804#M128092</guid>
      <dc:creator>Juliet1</dc:creator>
      <dc:date>2023-08-23T22:38:50Z</dc:date>
    </item>
  </channel>
</rss>

