<?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: Calculate no of customer until a selection is made in the filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-no-of-customer-until-a-selection-is-made-in-the-filter/m-p/2189271#M51144</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can roughly understand your requirement, I think you can create a calendar table and try this measure:&lt;/P&gt;
&lt;P&gt;This is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can first create a calendar table like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;calendar = CALENDARAUTO()&lt;/LI-CODE&gt;
&lt;P&gt;Then make sure it doesn’t have a relationship with the main table, then create a measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customer count = CALCULATE(distinctCOUNT('delivery table'[Customer ID]),FILTER(ALL('delivery table'),[delivery date]&amp;lt;SELECTEDVALUE('calendar'[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can create slicer a measure to palce the date column in the calendar table and a card chart to place this measure, you can get what you want:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much!&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 _Robert Qin&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>Mon, 15 Nov 2021 03:04:39 GMT</pubDate>
    <dc:creator>v-robertq-msft</dc:creator>
    <dc:date>2021-11-15T03:04:39Z</dc:date>
    <item>
      <title>Calculate no of customer until a selection is made in the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-no-of-customer-until-a-selection-is-made-in-the-filter/m-p/2184689#M50916</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a delivery table that includes the customer ID and the delivery dates. It's connected to another table that contains the customer ID and the first date of delivery.&lt;/P&gt;&lt;P&gt;I want to know how many customers I have until a date I select in the filter (qtr or specific month)&lt;/P&gt;&lt;P&gt;for example, if I have three new customers on July 21 and 4 on August 21 and I choose September 21 (or Q3), I would like to see that I have seven customers&lt;/P&gt;&lt;P&gt;I tried some ways but failed&lt;/P&gt;&lt;P&gt;I hope someone can help me with that&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 07:56:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-no-of-customer-until-a-selection-is-made-in-the-filter/m-p/2184689#M50916</guid>
      <dc:creator>mottya</dc:creator>
      <dc:date>2021-11-11T07:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate no of customer until a selection is made in the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-no-of-customer-until-a-selection-is-made-in-the-filter/m-p/2184891#M50929</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338176" data-lia-user-login="mottya" class="lia-mention lia-mention-user"&gt;mottya&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &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;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 09:27:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-no-of-customer-until-a-selection-is-made-in-the-filter/m-p/2184891#M50929</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-11-11T09:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate no of customer until a selection is made in the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-no-of-customer-until-a-selection-is-made-in-the-filter/m-p/2189271#M51144</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can roughly understand your requirement, I think you can create a calendar table and try this measure:&lt;/P&gt;
&lt;P&gt;This is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can first create a calendar table like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;calendar = CALENDARAUTO()&lt;/LI-CODE&gt;
&lt;P&gt;Then make sure it doesn’t have a relationship with the main table, then create a measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customer count = CALCULATE(distinctCOUNT('delivery table'[Customer ID]),FILTER(ALL('delivery table'),[delivery date]&amp;lt;SELECTEDVALUE('calendar'[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can create slicer a measure to palce the date column in the calendar table and a card chart to place this measure, you can get what you want:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much!&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 _Robert Qin&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>Mon, 15 Nov 2021 03:04:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-no-of-customer-until-a-selection-is-made-in-the-filter/m-p/2189271#M51144</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-11-15T03:04:39Z</dc:date>
    </item>
  </channel>
</rss>

