<?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 Table Visual by EndDate (Inactive Relationship) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804343#M183765</link>
    <description>&lt;P&gt;Your Leavers measure works for totals but not row-level filters.&lt;/P&gt;&lt;P&gt;Fix: create a boolean flag measure using the inactive EndDate relationship, then filter the table visual on it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ShowLeaver =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS ( Staff ),&lt;BR /&gt;USERELATIONSHIP ( Staff[EndDate], DateTable[Date] )&lt;BR /&gt;) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now in your table visual filter pane → set ShowLeaver = TRUE.&lt;/P&gt;&lt;P&gt;This way only staff with EndDate in the slicer period will appear.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2025 02:46:11 GMT</pubDate>
    <dc:creator>Shahid12523</dc:creator>
    <dc:date>2025-08-22T02:46:11Z</dc:date>
    <item>
      <title>Filter Table Visual by EndDate (Inactive Relationship)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4803943#M183747</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a very simple model and I’m stuck on something that feels like it should be straightforward.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Staff table with columns:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Person&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;StartDate&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;EndDate&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Date table with:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Active relationship → Staff[StartDate]&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Inactive relationship → Staff[EndDate]&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;A Date slicer drives both visuals.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;One table visual shows all people who started in the selected month/year (this works fine via StartDate).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Another table visual should show all people who &lt;/SPAN&gt;&lt;SPAN&gt;left in the selected month/year (based on EndDate).&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;What I tried:&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;I created this measure:&lt;/P&gt;&lt;PRE&gt;Leavers =
CALCULATE (
    COUNTROWS ( Staff ),
    USERELATIONSHIP ( Staff[EndDate], DateTable[Date] )
)&lt;/PRE&gt;&lt;P&gt;This works correctly in a card visual (I see the leaver count for the selected month).&lt;BR /&gt;But when I add Leavers as a filter on a table visual (e.g. show only rows where Leavers &amp;gt; 0), the table goes blank — no rows are returned. It works if I add the Leavers measure as a column in the table but I do not want this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;How can I filter a table visual so that it shows only those staff whose EndDate falls in the slicer period, given that StartDate is the active relationship?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 15:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4803943#M183747</guid>
      <dc:creator>Zahur</dc:creator>
      <dc:date>2025-08-21T15:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table Visual by EndDate (Inactive Relationship)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4803955#M183749</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340128" data-lia-user-login="Zahur" class="lia-mention lia-mention-user"&gt;Zahur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am I understadning correctly that you are using a measure as a filter for the visual? If yes, you need to consider that this creates the evaluation of the measure with a set of filters identified by the columns you grouped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to help you I need the pbix, can you share it via private message or put the file in a cloud service and share the link here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to understand how the visual is arranged, your DAX is OK but measures used as filters are complex to manage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;@me in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 15:52:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4803955#M183749</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-08-21T15:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table Visual by EndDate (Inactive Relationship)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804094#M183758</link>
      <description>&lt;P&gt;Thank you for the quick response Francesco. Yes, I am trying to use the Leaver measure as a filter on the table visual. Here is a link to the pbix&amp;nbsp;&lt;A href="https://1drv.ms/u/c/7a25248af98526f6/EXGg883vzltFjzR4pyOr2MMBSFQAiC2_MxNP9i4aRbWwNQ?e=qEynYo" target="_blank"&gt;Example.pbix&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 18:42:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804094#M183758</guid>
      <dc:creator>Zahur</dc:creator>
      <dc:date>2025-08-21T18:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table Visual by EndDate (Inactive Relationship)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804343#M183765</link>
      <description>&lt;P&gt;Your Leavers measure works for totals but not row-level filters.&lt;/P&gt;&lt;P&gt;Fix: create a boolean flag measure using the inactive EndDate relationship, then filter the table visual on it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ShowLeaver =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS ( Staff ),&lt;BR /&gt;USERELATIONSHIP ( Staff[EndDate], DateTable[Date] )&lt;BR /&gt;) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now in your table visual filter pane → set ShowLeaver = TRUE.&lt;/P&gt;&lt;P&gt;This way only staff with EndDate in the slicer period will appear.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 02:46:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804343#M183765</guid>
      <dc:creator>Shahid12523</dc:creator>
      <dc:date>2025-08-22T02:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table Visual by EndDate (Inactive Relationship)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804557#M183781</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1265350" data-lia-user-login="Shahid12523" class="lia-mention lia-mention-user"&gt;Shahid12523&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1287762" data-lia-user-login="FBergamaschi" class="lia-mention lia-mention-user"&gt;FBergamaschi&lt;/a&gt;&amp;nbsp;for your replies. I tried&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1265350" data-lia-user-login="Shahid12523" class="lia-mention lia-mention-user"&gt;Shahid12523&lt;/a&gt;&amp;nbsp;measure but it did not work so I modified it to&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mShowLeaver =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Staff&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;Staff&lt;/SPAN&gt;&lt;SPAN&gt;[EndDate]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But that did not work either.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Here is my latest pbix&amp;nbsp;&lt;A href="https://1drv.ms/u/c/7a25248af98526f6/EXGg883vzltFjzR4pyOr2MMBSFQAiC2_MxNP9i4aRbWwNQ?e=ux1Rcd" target="_blank"&gt;Example.pbix&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 06:51:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804557#M183781</guid>
      <dc:creator>Zahur</dc:creator>
      <dc:date>2025-08-22T06:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table Visual by EndDate (Inactive Relationship)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804601#M183782</link>
      <description>&lt;P&gt;connect me on linkedin-&lt;A href="https://www.linkedin.com/in/shahed-shaikh-4608a110b/" target="_blank"&gt;https://www.linkedin.com/in/shahed-shaikh-4608a110b/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;explain me on detaily so i can solve your problem&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 07:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804601#M183782</guid>
      <dc:creator>Shahid12523</dc:creator>
      <dc:date>2025-08-22T07:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table Visual by EndDate (Inactive Relationship)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804909#M183796</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1265350" data-lia-user-login="Shahid12523" class="lia-mention lia-mention-user"&gt;Shahid12523&lt;/a&gt;&amp;nbsp;but&amp;nbsp;I’d prefer to keep the discussion here so others can also benefit. The problem stated is really simple and I have provided a basic example pbix.&lt;/P&gt;&lt;P&gt;After spending many hours on this problem on forums and ChatGPT, I have decided to stick with the fudge fix of adding my original Leavers measure to the visual table as an invisible column.&lt;/P&gt;&lt;P&gt;Of course, I would welcome and appreciate anyone that is able to solve this very simple but frustating problem.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 10:55:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4804909#M183796</guid>
      <dc:creator>Zahur</dc:creator>
      <dc:date>2025-08-22T10:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table Visual by EndDate (Inactive Relationship)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4805546#M183809</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340128" data-lia-user-login="Zahur" class="lia-mention lia-mention-user"&gt;Zahur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;hope this meets your expectation&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Attaching PBIX as well. If works, accept as solution.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Aug 2025 07:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4805546#M183809</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2025-08-23T07:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table Visual by EndDate (Inactive Relationship)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4805579#M183811</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583487" data-lia-user-login="Rupak_bi" class="lia-mention lia-mention-user"&gt;Rupak_bi&lt;/a&gt;&amp;nbsp;I will accept this as a solution. It creates a measure for use in the table making use of the inactive relationship. It is a shame there was no way to create a measure that worked as a filter but your solution is good!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Aug 2025 09:39:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-Visual-by-EndDate-Inactive-Relationship/m-p/4805579#M183811</guid>
      <dc:creator>Zahur</dc:creator>
      <dc:date>2025-08-23T09:39:30Z</dc:date>
    </item>
  </channel>
</rss>

