<?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: Active customers count in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004948#M101630</link>
    <description>&lt;P&gt;"Sir IF we want the same calculation of your given measure on ficial year how would we can, please suggest".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATESYTD(Calendar_new[Date],"03/31")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 05:22:42 GMT</pubDate>
    <dc:creator>SachinNamdeo-20</dc:creator>
    <dc:date>2023-01-06T05:22:42Z</dc:date>
    <item>
      <title>Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003066#M101468</link>
      <description>&lt;P&gt;"Dear community,&lt;BR /&gt;&lt;SPAN&gt;I have 5 years of data at the invoice level. I am trying to calculate the no. of customers who purchased at least 3 times in the current FY and sales quantity of that customers. FY is an indian fiscal year".&lt;/SPAN&gt;&lt;BR /&gt;I have this type of data table :-&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is my pbi file link if you&amp;nbsp; have any issue with this then you to this link for visiting data:-&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 05:35:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003066#M101468</guid>
      <dc:creator>SachinNamdeo-20</dc:creator>
      <dc:date>2023-01-06T05:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003181#M101476</link>
      <description>&lt;P&gt;If you have a date table linked to the fact table you can try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Active Customers =
VAR SummaryTable =
    ADDCOLUMNS (
        SUMMARIZE ( Sales, Sales[Customer] ),
        "@num months", COUNTROWS ( CALCULATETABLE ( SUMMARIZE ( Sales, 'Date'[Year month] ) ) )
    )
RETURN
    COUNTROWS ( FILTER ( SummaryTable, [@num months] &amp;gt;= 3 ) )
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Jan 2023 11:24:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003181#M101476</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-01-05T11:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003221#M101484</link>
      <description>&lt;P&gt;"Thank you for your valuable suggestion but it gives me blank value, Please suggest me any other measure i also mention my pbi file above"&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 11:46:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003221#M101484</guid>
      <dc:creator>SachinNamdeo-20</dc:creator>
      <dc:date>2023-01-05T11:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003233#M101487</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Active Customers = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Customer Sales', 'Customer Sales'[Dealer], 'Customer Sales'[FY], &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"@count"&lt;/SPAN&gt;&lt;SPAN&gt; , Countrows())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; , [@count] &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you have Invoicecount more than 1 in any line&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Active Customers = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Customer Sales', 'Customer Sales'[Dealer], 'Customer Sales'[FY], &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"@count"&lt;/SPAN&gt;&lt;SPAN&gt; , SUM(InvoiceCount))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; , [@count] &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Jan 2023 12:12:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003233#M101487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-05T12:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003250#M101489</link>
      <description>&lt;P&gt;Your date table isn't linked to the invoice table. You need to link it on the appropriate field.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 12:08:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003250#M101489</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-01-05T12:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003269#M101492</link>
      <description>&lt;P&gt;"Sorry for mistake sir in this file date is linked with cube invoice but it also return blank value"&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1QPMBDmnmupMDBqSofXjaLCB6OpV3TAKo/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1QPMBDmnmupMDBqSofXjaLCB6OpV3TAKo/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 12:16:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003269#M101492</guid>
      <dc:creator>SachinNamdeo-20</dc:creator>
      <dc:date>2023-01-05T12:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003316#M101495</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="448001" data-lia-user-login="SachinNamdeo-20" class="lia-mention lia-mention-user"&gt;SachinNamdeo-20&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if i fully get you, you may&amp;nbsp;try to plot a table visual with two measures like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;3PlusCustomer =
VAR _table =
ADDCOLUMNS(
    VALUES(TableName[Dealer]),
    "OrderCount",
    CALCULATE(COUNTROWS(TableName)),
    "SalesQty",
    CALCULATE(SUM(TableName[sales]))
)
RETURN
COUNTROWS(FILTER(_table, [OrderCount]&amp;gt;=3))

3PlusCustomerSales =
VAR _table =
ADDCOLUMNS(
    VALUES(TableName[Dealer]),
    "OrderCount",
    CALCULATE(COUNTROWS(TableName)),
    "SalesQty",
    CALCULATE(SUM(TableName[sales]))
)
RETURN
CALCULATE(SUM(TableName[sales]), FILTER(_table, [OrderCount]&amp;gt;=3))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unable to access your file over the cloud and tried to verify with a simplified sample data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 12:36:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003316#M101495</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-05T12:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003341#M101499</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="448001" data-lia-user-login="SachinNamdeo-20" class="lia-mention lia-mention-user"&gt;SachinNamdeo-20&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to amended sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Active Customers = 
COUNTROWS (
    FILTER (
        GROUPBY (
            SUMMARIZE ( 
                CUBE_INVOICE, 
                CUBE_INVOICE[SOLD TO PARTNER.PARTNER CODE], 
                Calendar_new[YM] 
            ),
            CUBE_INVOICE[SOLD TO PARTNER.PARTNER CODE],
            "@Months", 
            SUMX ( CURRENTGROUP ( ), 1 )
        ),
        [@Months] &amp;gt;= 3
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Jan 2023 12:46:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3003341#M101499</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-05T12:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004944#M101628</link>
      <description>&lt;P&gt;Sir IF we want the same&amp;nbsp; calculation on ficial year how would we can, please suggest&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATESYTD(Calendar_new[Date],"03/31")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 05:20:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004944#M101628</guid>
      <dc:creator>SachinNamdeo-20</dc:creator>
      <dc:date>2023-01-06T05:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004948#M101630</link>
      <description>&lt;P&gt;"Sir IF we want the same calculation of your given measure on ficial year how would we can, please suggest".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATESYTD(Calendar_new[Date],"03/31")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 05:22:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004948#M101630</guid>
      <dc:creator>SachinNamdeo-20</dc:creator>
      <dc:date>2023-01-06T05:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004954#M101632</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;calculation done&lt;BR /&gt;Active dealer in ficial year = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Active Customers]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DATESYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Calendar_new&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"03/31"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Jan 2023 05:32:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004954#M101632</guid>
      <dc:creator>SachinNamdeo-20</dc:creator>
      <dc:date>2023-01-06T05:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004957#M101633</link>
      <description>&lt;P&gt;Thank you sir for your valuable suggestion&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 05:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004957#M101633</guid>
      <dc:creator>SachinNamdeo-20</dc:creator>
      <dc:date>2023-01-06T05:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004959#M101634</link>
      <description>&lt;P&gt;Thank you sir for your valuable suggestion&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 05:34:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004959#M101634</guid>
      <dc:creator>SachinNamdeo-20</dc:creator>
      <dc:date>2023-01-06T05:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Active customers count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004960#M101635</link>
      <description>&lt;P&gt;Thank you sir for your valuable suggestion&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 05:34:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Active-customers-count/m-p/3004960#M101635</guid>
      <dc:creator>SachinNamdeo-20</dc:creator>
      <dc:date>2023-01-06T05:34:45Z</dc:date>
    </item>
  </channel>
</rss>

