<?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: Average Days to Order by Year and Product with Customer Count in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750324#M181893</link>
    <description>&lt;P&gt;The Atleast 5 and started in 2023 dax doesn't seem to work in my test file:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;It seems to be counting customers with less than 5 cases.&amp;nbsp; Probably because the Product and Stage filter isn't in the dax.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, I want to avoid using visual filters as I want to be able to use multiple measures in the same table such as seeing YOY new users, users with over 5, and how fast to 5 cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 03:30:45 GMT</pubDate>
    <dc:creator>etane</dc:creator>
    <dc:date>2025-07-02T03:30:45Z</dc:date>
    <item>
      <title>Average Days to Order by Year and Product with Customer Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750214#M181889</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to determine:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;X) Narrow down customer base to those who made first purchase of Product B in 2023 and StageName is Completion&lt;BR /&gt;A) Number of customers in X&lt;/P&gt;&lt;P&gt;B) Number of customers in X who has 5 or more units ordered&lt;/P&gt;&lt;P&gt;C) Which customers are in B?&amp;nbsp; (Recreating this table but without leveraging the visual filter in red circle as I will have other measures in the same table)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;D) # of customers with at least 5 orders with first order in 2023 / # of customers with first order in 2023 (C divided by B)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;E) Average days it takes B to get from 1st to 5th order&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my WIP file:&amp;nbsp; &lt;A href="https://drive.google.com/file/d/1LMY5lIjP4RpFk3VYRWSgvPL_bpvvcjyQ/view?usp=sharing" target="_self"&gt;Link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 15:07:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750214#M181889</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2025-07-02T15:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days to Order by Year and Product with Customer Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750264#M181890</link>
      <description>&lt;P&gt;Please be more specific.&amp;nbsp; You want this by year, or overall?&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;</description>
      <pubDate>Wed, 02 Jul 2025 00:04:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750264#M181890</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-07-02T00:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days to Order by Year and Product with Customer Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750270#M181891</link>
      <description>&lt;P&gt;Sorry I wasn't clear in the requirements.&amp;nbsp; I restated the requirements hopefully they are clearer now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 00:19:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750270#M181891</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2025-07-02T00:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days to Order by Year and Product with Customer Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750271#M181892</link>
      <description>&lt;P&gt;You can build on the sample measure I showed It will react to your other filters.&amp;nbsp; Then you can use that measure as a visual filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2 at least five and started 2023 = 
var a = CALCULATETABLE(ALLSELECTED('Sales Table'[Customer]),'Z - Calendar'[Year#]=2023)
var b = SUMMARIZECOLUMNS('Sales Table'[Customer],filter('Sales Table',[Customer] in a),"ct",CALCULATE(DISTINCTCOUNT('Sales Table'[Order Number])))
return countrows(filter(b,[ct]&amp;gt;4))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For item E) you would use the TOPN(5) orders per customer within the filter context and then subtract the minimum order date from the maximum order date&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 00:31:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750271#M181892</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-07-02T00:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days to Order by Year and Product with Customer Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750324#M181893</link>
      <description>&lt;P&gt;The Atleast 5 and started in 2023 dax doesn't seem to work in my test file:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;It seems to be counting customers with less than 5 cases.&amp;nbsp; Probably because the Product and Stage filter isn't in the dax.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, I want to avoid using visual filters as I want to be able to use multiple measures in the same table such as seeing YOY new users, users with over 5, and how fast to 5 cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 03:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750324#M181893</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2025-07-02T03:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days to Order by Year and Product with Customer Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750697#M181909</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687592" data-lia-user-login="etane" class="lia-mention lia-mention-user"&gt;etane&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to the Microsoft Community Forum.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to analyze Product B purchases at StageName is "Completion" for customers who Started in 2023, who has more than 5 orders and some other conditions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Please refer below steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Created DAX measure for, Customers who started in 2023.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Created DAX measure for, No of customers in A who have more than 5 orders , Product B completion orders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Created Calculated table, Customers who started in 2023 and reached 5 orders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp; Created DAX measure, for Conversion rate to more than 5 orders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5.&amp;nbsp; &amp;nbsp;Created DAX measure,&amp;nbsp; For A&lt;SPAN&gt;verage days it takes B to get from 1st to 5th order.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note: I have created DAX measures in "Sales Table"and created separate Calculated table "&lt;/SPAN&gt;&lt;SPAN&gt;Qualified Customers Table" in attached PBIX file.&lt;/SPAN&gt;&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 hope this information helps. Please do let us know if you have any further queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 08:48:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4750697#M181909</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-07-02T08:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days to Order by Year and Product with Customer Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4751186#M181927</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; This is exactly what I am looking for!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 16:21:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-to-Order-by-Year-and-Product-with-Customer-Count/m-p/4751186#M181927</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2025-07-02T16:21:15Z</dc:date>
    </item>
  </channel>
</rss>

