<?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: Calculating a dynamic anti join table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1258972#M20878</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;forgot to mention I'm on a direct query mode&lt;BR /&gt;cant use the query editor here&lt;/P&gt;&lt;P&gt;I should perform it by pure dax&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 10:55:00 GMT</pubDate>
    <dc:creator>Adidas</dc:creator>
    <dc:date>2020-07-29T10:55:00Z</dc:date>
    <item>
      <title>Calculating a dynamic anti join table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1258913#M20870</link>
      <description>&lt;P&gt;I have two tables in my power bi model:&lt;BR /&gt;a. SalesFact table which contains sales per employee by dates and b.SalesEmployees which hold the salesperson's details&lt;BR /&gt;My goal is to show for each date a list of the salesperson with no sales on that date. (page has date slicer)&lt;BR /&gt;to calculate this "anti join" table I wrote this table function:&lt;BR /&gt;antijoin table =&lt;BR /&gt;EXCEPT (&lt;BR /&gt;SELECTCOLUMNS ( SalesPersons, "ID", SalesPersons[worker id] ),&lt;BR /&gt;SELECTCOLUMNS ( 'Salesfact', "ID", 'Salesfact'[worker id] )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;The problem here is that the function does not take the user selection of date slicer into consideration&lt;BR /&gt;meaning it is calculating the anti join between the whole SalesFact table and SalesEmployees table regardless of the date chosen&lt;BR /&gt;how can I achieve my desired goal?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 10:33:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1258913#M20870</guid>
      <dc:creator>Adidas</dc:creator>
      <dc:date>2020-07-29T10:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic anti join table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1258959#M20877</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="147374" data-lia-user-login="Adidas" class="lia-mention lia-mention-user"&gt;Adidas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if these help you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://radacad.com/how-to-change-joining-types-in-power-bi-and-power-query#:~:text=In%20Power%20BI%20Desktop%20you,Right%20part%20of%20the%20join)." target="_blank"&gt;https://radacad.com/how-to-change-joining-types-in-power-bi-and-power-query#:~:text=In%20Power%20BI%20Desktop%20you,Right%20part%20of%20the%20join).&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://curbal.com/blog/joining-table-in-power-bi-with-power-query-and-dax" target="_blank"&gt;https://curbal.com/blog/joining-table-in-power-bi-with-power-query-and-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.tutorialgateway.org/joins-in-power-bi/" target="_blank"&gt;https://www.tutorialgateway.org/joins-in-power-bi/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 10:49:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1258959#M20877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T10:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic anti join table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1258972#M20878</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;forgot to mention I'm on a direct query mode&lt;BR /&gt;cant use the query editor here&lt;/P&gt;&lt;P&gt;I should perform it by pure dax&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 10:55:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1258972#M20878</guid>
      <dc:creator>Adidas</dc:creator>
      <dc:date>2020-07-29T10:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic anti join table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1259033#M20880</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="147374" data-lia-user-login="Adidas" class="lia-mention lia-mention-user"&gt;Adidas&lt;/a&gt; , you can use inside a measure, but costly stuff for measure &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;antijoin table =&lt;/P&gt;
&lt;P&gt;countx(&lt;BR /&gt;EXCEPT (&lt;BR /&gt;SELECTCOLUMNS ( SalesPersons, "ID", SalesPersons[worker id] ),&lt;BR /&gt;SELECTCOLUMNS ( 'Salesfact', "ID", 'Salesfact'[worker id] )&lt;BR /&gt;) ,[worker id] )&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 11:14:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1259033#M20880</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-29T11:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic anti join table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1259076#M20881</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="147374" data-lia-user-login="Adidas" class="lia-mention lia-mention-user"&gt;Adidas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pbix file is attached with the solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Count-of-Customers-with-no-Sales/td-p/589155" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/Count-of-Customers-with-no-Sales/td-p/589155&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 11:38:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1259076#M20881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T11:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic anti join table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1259087#M20883</link>
      <description>&lt;P&gt;Thanks amitchandak&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;I created the measure as you suggested&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;measure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;countx(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EXCEPT (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTCOLUMNS ( SalesPersons, "ID", SalesPersons[worker id] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTCOLUMNS ( 'Salesfact', "ID", 'Salesfact'[worker id] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) ,[ID] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can I show now the list of employees with no daily sales?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 11:38:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1259087#M20883</guid>
      <dc:creator>Adidas</dc:creator>
      <dc:date>2020-07-29T11:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic anti join table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1259162#M20888</link>
      <description>&lt;P&gt;Thank you all for your kind help&lt;/P&gt;&lt;P&gt;it works fine now&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 12:03:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-anti-join-table/m-p/1259162#M20888</guid>
      <dc:creator>Adidas</dc:creator>
      <dc:date>2020-07-29T12:03:24Z</dc:date>
    </item>
  </channel>
</rss>

