<?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 How to filter N conditions and count how many customers they have? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3319289#M124209</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Please help me with a question, I've been looking for this solution for days.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have the table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to filter the Blue, Green and Pink services.&lt;/P&gt;&lt;P&gt;Returning only the number of customers who have these values, in PWBI the card is counting all customers, for example who has the Blue services, but the idea is to filter only who has the 3 services together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with calculate, with filter, keep filters, everything, everything selected, but without success.&lt;/P&gt;&lt;P&gt;This is just one case, but I have a project, which I want to filter N possibilities, for example, Blue with Pink, or Orange with Indigo, in short, I need a formula that is adaptable.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 23:34:44 GMT</pubDate>
    <dc:creator>Eder_Govoni</dc:creator>
    <dc:date>2023-07-06T23:34:44Z</dc:date>
    <item>
      <title>How to filter N conditions and count how many customers they have?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3319289#M124209</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Please help me with a question, I've been looking for this solution for days.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have the table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to filter the Blue, Green and Pink services.&lt;/P&gt;&lt;P&gt;Returning only the number of customers who have these values, in PWBI the card is counting all customers, for example who has the Blue services, but the idea is to filter only who has the 3 services together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with calculate, with filter, keep filters, everything, everything selected, but without success.&lt;/P&gt;&lt;P&gt;This is just one case, but I have a project, which I want to filter N possibilities, for example, Blue with Pink, or Orange with Indigo, in short, I need a formula that is adaptable.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 23:34:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3319289#M124209</guid>
      <dc:creator>Eder_Govoni</dc:creator>
      <dc:date>2023-07-06T23:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter N conditions and count how many customers they have?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3319351#M124211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="585627" data-lia-user-login="Eder_Govoni" class="lia-mention lia-mention-user"&gt;Eder_Govoni&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Would you copy and paste this table rather than add a picture.&amp;nbsp; We might be able to give you a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;BR /&gt;If you would share your pbix, or dummy up some values in Excel both for current and expected data. Please copy and paste them into your post, rather than doing a picture, we may be able to help you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please read this post to get your question answered more quickly:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 01:05:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3319351#M124211</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2023-07-07T01:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter N conditions and count how many customers they have?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3319654#M124224</link>
      <description>&lt;P&gt;sure, sorry for the mistake.&lt;BR /&gt;&lt;BR /&gt;Here is my pbi.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1nyQED4e2HHvgCu_1rAMt2RFAL39kcry6/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1nyQED4e2HHvgCu_1rAMt2RFAL39kcry6/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 05:36:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3319654#M124224</guid>
      <dc:creator>Eder_Govoni</dc:creator>
      <dc:date>2023-07-07T05:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter N conditions and count how many customers they have?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3322362#M124387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="585627" data-lia-user-login="Eder_Govoni" class="lia-mention lia-mention-user"&gt;Eder_Govoni&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;test = 
VAR __SelectedServices = ALLSELECTED('Case Client'[Service])
VAR __ServiceCount = COUNTROWS(__SelectedServices)
RETURN
CALCULATE (
    DISTINCTCOUNT ( 'Case Client'[Client] ),
    FILTER (
        ADDCOLUMNS (
            VALUES ( 'Case Client'[Client] ),
            "ServiceCount", CALCULATE (
                COUNTROWS ( 'Case Client' ),
                'Case Client'[Service] IN __SelectedServices
            )
        ),
        [ServiceCount] = __ServiceCount
    )
) + 0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 03:08:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3322362#M124387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-10T03:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter N conditions and count how many customers they have?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3323997#M124461</link>
      <description>&lt;P&gt;My friend, thank you very much.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I could never think this way, it helped me a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 22:44:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-N-conditions-and-count-how-many-customers-they/m-p/3323997#M124461</guid>
      <dc:creator>Eder_Govoni</dc:creator>
      <dc:date>2023-07-10T22:44:04Z</dc:date>
    </item>
  </channel>
</rss>

