<?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: Inverse filtering across tables within a date range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3570043#M137645</link>
    <description>&lt;P&gt;You're right, in my real file I had missed one relationship, then your measure worked again. Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 09:05:57 GMT</pubDate>
    <dc:creator>MHO-3XN</dc:creator>
    <dc:date>2023-12-06T09:05:57Z</dc:date>
    <item>
      <title>Inverse filtering across tables within a date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3568629#M137584</link>
      <description>&lt;P&gt;Hi all, I'm struggling to do inverse filtering across tables within a given date range.&lt;BR /&gt;&lt;BR /&gt;I have a table of users recorded on a given date and I have a table of all users, like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to have a table that shows all the users NOT recorded in a given date range. You can see in the file I posed below, but if I select Oct-29 to Nov-10, I want my table to show all the users who are in the all users table and who are not in the users recorded table within that date range. I want the date range to be controlled via a filter on the powerBI report page like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I managed some simple DAX to create a table that shows the users that never appear in the users recorded table (it's called unused_users in my pbi)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;unused_users = EXCEPT(AllUsers, SUMMARIZE(UserDate, UserDate[user]))&lt;/LI-CODE&gt;&lt;P&gt;but it of course ignores the date. How can I create a table that will update properly when the date range is selected on the report page?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is my excel and pbi file:&lt;BR /&gt;&lt;A href="https://we.tl/t-F5WF2EVYVY" target="_blank" rel="noopener"&gt;https://we.tl/t-F5WF2EVYVY&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 14:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3568629#M137584</guid>
      <dc:creator>MHO-3XN</dc:creator>
      <dc:date>2023-12-05T14:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse filtering across tables within a date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3568741#M137587</link>
      <description>&lt;P&gt;First of all, get rid of the unused_users table. Computed tables are calulated at import, so never take into account any slicers or filters on the report.&lt;BR /&gt;To see the users not in the selected period:&lt;BR /&gt;create a measure like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# recorded users =&lt;/SPAN&gt; &lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;UserDate&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;&lt;SPAN&gt;&lt;SPAN&gt;Now create a visual and add the user column from AllUsers, and then add a filter on the visual [# recorded users] is blank&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:16:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3568741#M137587</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2023-12-05T15:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse filtering across tables within a date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3568811#M137594</link>
      <description>&lt;P&gt;Ah ok I did not know that calculated tables do not take filters into account. Your solution works well with the file I uploaded - thank you for that!! -&amp;nbsp;but in my working file the solution doesn't work. I'm worried it is because the UserDate table is also a calcualted table in my real file.&lt;BR /&gt;&lt;BR /&gt;I've created another version of my file that more closely resembes my real data. In it, I renamed the table I faked to FAKE_UserDate, and I added two new tables, raw_dailyusersoftware which contains all the raw data and the ProductSoftware table. The calcualted table (that FAKE_UserDate was based on) is called calculated_UserDate and the DAX expression is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;calculated_UserDate = CALCULATETABLE(  SUMMARIZE(raw_dailyusersoftware, raw_dailyusersoftware[user], raw_dailyusersoftware[date]), FILTER( ProductSoftware, ProductSoftware[Software_Product]= "DD All Apps") ) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you tell me how to get my desired result on the raw data table and bypass the calculated table entirely?&lt;BR /&gt;&lt;BR /&gt;Here is the updated file:&lt;BR /&gt;&lt;A href="https://we.tl/t-kpcroD4Y8D" target="_self"&gt;https://we.tl/t-kpcroD4Y8D&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:52:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3568811#M137594</guid>
      <dc:creator>MHO-3XN</dc:creator>
      <dc:date>2023-12-05T15:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse filtering across tables within a date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3568943#M137602</link>
      <description>&lt;P&gt;The problem is not in Userdate being a calculated table. You should be checking you data and the relationships between the tables. You need a relationship between allusers and your userdate table (calculated and/or fake). I see other relationships that should not be there (with expectedresult) and the calculated_userdate table has users that are not in allUsers....&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 16:48:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3568943#M137602</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2023-12-05T16:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse filtering across tables within a date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3570043#M137645</link>
      <description>&lt;P&gt;You're right, in my real file I had missed one relationship, then your measure worked again. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 09:05:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inverse-filtering-across-tables-within-a-date-range/m-p/3570043#M137645</guid>
      <dc:creator>MHO-3XN</dc:creator>
      <dc:date>2023-12-06T09:05:57Z</dc:date>
    </item>
  </channel>
</rss>

