<?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: DISTINCTCOUNT with filters from multiple tables. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475937#M67600</link>
    <description>&lt;P&gt;Understood,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your option also works, so could you please tell me which option is best in this case?&lt;BR /&gt;With FILTER function or just doing what you said above?&lt;BR /&gt;&lt;BR /&gt;Thank you so much.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 20:08:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-25T20:08:39Z</dc:date>
    <item>
      <title>DISTINCTCOUNT with filters from multiple tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475472#M67570</link>
      <description>&lt;P&gt;Hello folks,&lt;BR /&gt;&lt;BR /&gt;I'm struggling to create a measure where I have the &lt;STRONG&gt;Number of Tenancies (cases)&lt;/STRONG&gt;, where the &lt;STRONG&gt;Account Class&lt;/STRONG&gt; is 'REN', the &lt;STRONG&gt;In Arreas&lt;/STRONG&gt; is 'Y', and the &lt;STRONG&gt;Current Former&lt;/STRONG&gt; is 'C'.&lt;/P&gt;&lt;P&gt;The problem is that the&amp;nbsp;&lt;STRONG&gt;Account Class &lt;/STRONG&gt;comes from a different table and I'm unsure how to filter it.&lt;/P&gt;&lt;P&gt;Couldn't find anything on YT or solutions in here that could help me to solve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st try.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;2nd try.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 15:46:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475472#M67570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-25T15:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCTCOUNT with filters from multiple tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475552#M67574</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Do not use &amp;amp;&amp;amp; or || between different tables, By default it is end&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the second one just give comma after "Y" and remove &amp;amp;&amp;amp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 16:24:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475552#M67574</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-25T16:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCTCOUNT with filters from multiple tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475560#M67575</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;No Current Arrears Cases (REN) =
CALCULATE (
    DISTINCTCOUNT ( 'Account Balance Weekly'[DTE_TENANCY_NO] ),
    'Account Balance Weekly'[DTE_CURRENT_FORMER] = "C",
    'Account Balance Weekly'[FAB_IN_ARREARS] = "Y",
    FILTER ( 'Rent Account', 'Rent Account'[Account_Class] = "REN" )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Apr 2022 16:27:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475560#M67575</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-25T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCTCOUNT with filters from multiple tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475929#M67597</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 20:01:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475929#M67597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-25T20:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCTCOUNT with filters from multiple tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475937#M67600</link>
      <description>&lt;P&gt;Understood,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your option also works, so could you please tell me which option is best in this case?&lt;BR /&gt;With FILTER function or just doing what you said above?&lt;BR /&gt;&lt;BR /&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 20:08:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2475937#M67600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-25T20:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCTCOUNT with filters from multiple tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2482362#M68008</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has your problem been solved, if so, please consider Accept a correct reply as the solution.&amp;nbsp;If not, can you share some of the sample data for testing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 07:40:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2482362#M68008</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-04-28T07:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCTCOUNT with filters from multiple tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2482454#M68015</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I briefly simulated some data that I hope will fit your situation.&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;No Current Arrears Cases = 
CALCULATE (
    DISTINCTCOUNT ( 'Account Balance Weekly'[DTE_TENANCY_NO] ),
    FILTER ('Account Balance Weekly',
        'Account Balance Weekly'[DTE_CURRENT_FORMER] = "C"
            &amp;amp;&amp;amp; 'Account Balance Weekly'[FAB_IN_ARREARS] &amp;lt;&amp;gt; "Y"
    ),
    FILTER ( 'Rent_Account', Rent_Account[Account Class] = "REN" )
)&lt;/LI-CODE&gt;
&lt;P&gt;Table:&amp;nbsp;Rent_Account&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Table:&amp;nbsp;Account Balance Weekly&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Shouldn't the number of cases that you want to calculate without outstanding payments not be equal to "Y"? If "Y" has other meanings, you can also calculate it as you understand it. If you want to filter multiple tables, you may need to add an additional Filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 08:07:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DISTINCTCOUNT-with-filters-from-multiple-tables/m-p/2482454#M68015</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-04-28T08:07:13Z</dc:date>
    </item>
  </channel>
</rss>

