<?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 DAX Function get sales from Clients with sales previous 3 Fiscal Years and no sale This Fiscal Year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-get-sales-from-Clients-with-sales-previous-3-Fiscal/m-p/2711142#M82373</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am struggling getting the following DAX function: I need to display the clients and their sales for those clients who have &lt;/SPAN&gt;&lt;U&gt;consecutive sales&lt;/U&gt;&lt;SPAN&gt; on FiscalYR-3, FiscalYR-2, FiscalYR-1 but not This FiscalYR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found this code, but it does not seem to answer. &lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Calculating-Consecutive-Years-Active/m-p/1670507#M666948" target="_blank" rel="noopener"&gt;Solved: Re: Calculating Consecutive Years Active - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards and thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 23:57:16 GMT</pubDate>
    <dc:creator>AH2022</dc:creator>
    <dc:date>2022-08-18T23:57:16Z</dc:date>
    <item>
      <title>DAX Function get sales from Clients with sales previous 3 Fiscal Years and no sale This Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-get-sales-from-Clients-with-sales-previous-3-Fiscal/m-p/2711142#M82373</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am struggling getting the following DAX function: I need to display the clients and their sales for those clients who have &lt;/SPAN&gt;&lt;U&gt;consecutive sales&lt;/U&gt;&lt;SPAN&gt; on FiscalYR-3, FiscalYR-2, FiscalYR-1 but not This FiscalYR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found this code, but it does not seem to answer. &lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Calculating-Consecutive-Years-Active/m-p/1670507#M666948" target="_blank" rel="noopener"&gt;Solved: Re: Calculating Consecutive Years Active - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards and thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 23:57:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-get-sales-from-Clients-with-sales-previous-3-Fiscal/m-p/2711142#M82373</guid>
      <dc:creator>AH2022</dc:creator>
      <dc:date>2022-08-18T23:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function get sales from Clients with sales previous 3 Fiscal Years and no sale This Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-get-sales-from-Clients-with-sales-previous-3-Fiscal/m-p/2711275#M82382</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your dataset looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file. I hope the below can provide some ideas on how to create a slolution for your dataset.&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;LI-CODE lang="markup"&gt;Sales: = 
SUM( Data[Revenue] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customers list expected result: =
VAR _currentyear =
    YEAR ( TODAY () )
VAR _oneyearago = _currentyear - 1
VAR _twoyearsago = _currentyear - 2
VAR _threeyearsago = _currentyear - 3
VAR _currentyearnosalescustomers =
    SUMMARIZE (
        FILTER (
            CROSSJOIN ( VALUES ( 'Calendar'[Year] ), VALUES ( Customer[Customer] ) ),
            'Calendar'[Year] = _currentyear
                &amp;amp;&amp;amp; [Sales:] = BLANK ()
        ),
        Customer[Customer]
    )
VAR _oneyearagocustomerslist =
    SUMMARIZE (
        FILTER (
            CROSSJOIN ( VALUES ( 'Calendar'[Year] ), VALUES ( Customer[Customer] ) ),
            'Calendar'[Year] = _oneyearago
                &amp;amp;&amp;amp; [Sales:] &amp;lt;&amp;gt; BLANK ()
        ),
        Customer[Customer]
    )
VAR _twoyearagocustomerslist =
    SUMMARIZE (
        FILTER (
            CROSSJOIN ( VALUES ( 'Calendar'[Year] ), VALUES ( Customer[Customer] ) ),
            'Calendar'[Year] = _twoyearsago
                &amp;amp;&amp;amp; [Sales:] &amp;lt;&amp;gt; BLANK ()
        ),
        Customer[Customer]
    )
VAR _threeyearagocustomerslist =
    SUMMARIZE (
        FILTER (
            CROSSJOIN ( VALUES ( 'Calendar'[Year] ), VALUES ( Customer[Customer] ) ),
            'Calendar'[Year] = _threeyearsago
                &amp;amp;&amp;amp; [Sales:] &amp;lt;&amp;gt; BLANK ()
        ),
        Customer[Customer]
    )
RETURN
    CONCATENATEX (
        INTERSECT (
            INTERSECT (
                INTERSECT ( _currentyearnosalescustomers, _oneyearagocustomerslist ),
                _twoyearagocustomerslist
            ),
            _threeyearagocustomerslist
        ),
        Customer[Customer],
        ", "
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Aug 2022 02:10:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-get-sales-from-Clients-with-sales-previous-3-Fiscal/m-p/2711275#M82382</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-19T02:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function get sales from Clients with sales previous 3 Fiscal Years and no sale This Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-get-sales-from-Clients-with-sales-previous-3-Fiscal/m-p/2713282#M82487</link>
      <description>&lt;P&gt;Perfect!&amp;nbsp;&lt;SPAN&gt;I&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;really appreciate!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 18:16:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-get-sales-from-Clients-with-sales-previous-3-Fiscal/m-p/2713282#M82487</guid>
      <dc:creator>AH2022</dc:creator>
      <dc:date>2022-08-19T18:16:48Z</dc:date>
    </item>
  </channel>
</rss>

