<?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: Display YTD of Active Clients (at least 1 purchase within last 12 months) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-YTD-of-Active-Clients-at-least-1-purchase-within-last-12/m-p/3303433#M123309</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="419283" data-lia-user-login="AH2022" class="lia-mention lia-mention-user"&gt;AH2022&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(
    [ActiveClientCount],
    DATESBETWEEN(
        DimDates[Date],
        DATE(YEAR(DimDates[Date]), 4, 1),
        DATE(YEAR(DimDates[Date]), 6, 22)
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;This measure uses the function to filter the date range from April 1st to June 22nd for each year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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>Tue, 27 Jun 2023 02:25:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-27T02:25:30Z</dc:date>
    <item>
      <title>Display YTD of Active Clients (at least 1 purchase within last 12 months)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-YTD-of-Active-Clients-at-least-1-purchase-within-last-12/m-p/3298415#M122943</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table displays now : active clients (at least 1 purchase within the last 12 months)&lt;/P&gt;&lt;P&gt;Blue columns in the graphic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ActiveClientCount&lt;/STRONG&gt; =SUMX(RE_Client,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IF(CALCULATE(ClientMeasureTable[ClientCount], DATESINPERIOD(DimDates[Date], lastDATE(DimDates[Date]), -1, YEAR))=1,1,0))&lt;/P&gt;&lt;P&gt;//at least 1 purchase within the last 12 months&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I display the &lt;EM&gt;active clients&lt;/EM&gt; (gave at least 1 time during the last 12 months), but &lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;YTD&lt;/STRONG&gt; &lt;/FONT&gt;(meaning only 1 April to June 22nd of each year?)&amp;nbsp;Orange columns in the graphic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;ActiveClientCountYTD&lt;/STRONG&gt; = CALCULATE([ActiveClientCount], DATESYTD(DimDates[Date], "31-03"))&lt;/P&gt;&lt;P&gt;Displays the same result (blue columns).&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated:&amp;nbsp;&lt;SPAN&gt;advice or link or any other reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 18:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-YTD-of-Active-Clients-at-least-1-purchase-within-last-12/m-p/3298415#M122943</guid>
      <dc:creator>AH2022</dc:creator>
      <dc:date>2023-06-22T18:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Display YTD of Active Clients (at least 1 purchase within last 12 months)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-YTD-of-Active-Clients-at-least-1-purchase-within-last-12/m-p/3303433#M123309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="419283" data-lia-user-login="AH2022" class="lia-mention lia-mention-user"&gt;AH2022&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(
    [ActiveClientCount],
    DATESBETWEEN(
        DimDates[Date],
        DATE(YEAR(DimDates[Date]), 4, 1),
        DATE(YEAR(DimDates[Date]), 6, 22)
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;This measure uses the function to filter the date range from April 1st to June 22nd for each year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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>Tue, 27 Jun 2023 02:25:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-YTD-of-Active-Clients-at-least-1-purchase-within-last-12/m-p/3303433#M123309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-27T02:25:30Z</dc:date>
    </item>
  </channel>
</rss>

