<?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 How can I see which clients have bought a specific product in only one of last three months? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2974780#M99570</link>
    <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;I'm having trouble in figuring out how can i create a measure that gives me which clients have bought a specific product in only one of the last three months.&lt;BR /&gt;&lt;BR /&gt;For an example: If the months in consideration are: january, february and march, I want clients that have bought in jan but not in feb and march, or clients that have bought in feb, but not in jan and mar or even clients that have bought in mar but not in jan and feb.&lt;BR /&gt;I know how to do it for a specific month, as in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE (
[#Sales],
Product[Product Name] = "XXX",
Period[Month/Year] = "jan/2022"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, i manually create a table where the first column is the clients ID and the second column is the measure above. I wanted a measure that gave me which clients bought the product in only one of the last 3 months.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Dec 2022 19:34:06 GMT</pubDate>
    <dc:creator>felipescamilo</dc:creator>
    <dc:date>2022-12-17T19:34:06Z</dc:date>
    <item>
      <title>How can I see which clients have bought a specific product in only one of last three months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2974780#M99570</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;I'm having trouble in figuring out how can i create a measure that gives me which clients have bought a specific product in only one of the last three months.&lt;BR /&gt;&lt;BR /&gt;For an example: If the months in consideration are: january, february and march, I want clients that have bought in jan but not in feb and march, or clients that have bought in feb, but not in jan and mar or even clients that have bought in mar but not in jan and feb.&lt;BR /&gt;I know how to do it for a specific month, as in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE (
[#Sales],
Product[Product Name] = "XXX",
Period[Month/Year] = "jan/2022"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, i manually create a table where the first column is the clients ID and the second column is the measure above. I wanted a measure that gave me which clients bought the product in only one of the last 3 months.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2022 19:34:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2974780#M99570</guid>
      <dc:creator>felipescamilo</dc:creator>
      <dc:date>2022-12-17T19:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I see which clients have bought a specific product in only one of last three months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2974895#M99576</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="488201" data-lia-user-login="felipescamilo" class="lia-mention lia-mention-user"&gt;felipescamilo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;[#Sales],&lt;/P&gt;&lt;P&gt;Product[Product Name] = "XXX",&lt;/P&gt;&lt;P&gt;Period[Month/Year] in { "feb/2022",&amp;nbsp;"jan/2022",&amp;nbsp;"mar/2022"}&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2022 23:37:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2974895#M99576</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-12-17T23:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I see which clients have bought a specific product in only one of last three months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2975249#M99603</link>
      <description>&lt;P&gt;hey &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;, thanks for your answer. But in this case i would get a list of all clients that bought in those 3 months. What i want are clients that bought in &lt;STRONG&gt;only&lt;/STRONG&gt; one of the three months.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2022 14:35:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2975249#M99603</guid>
      <dc:creator>felipescamilo</dc:creator>
      <dc:date>2022-12-18T14:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I see which clients have bought a specific product in only one of last three months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2975266#M99605</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="488201" data-lia-user-login="felipescamilo" class="lia-mention lia-mention-user"&gt;felipescamilo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;CALCULATE (
    [#Sales],
    Product[Product Name] = "XXX",
    (
        Period[Month/Year] = "jan/2022" 
            &amp;amp;&amp;amp; Period[Month/Year] &amp;lt;&amp;gt;"feb/2022" 
            &amp;amp;&amp;amp;Period[Month/Year] &amp;lt;&amp;gt;"mar/2022"
    )
    || 
    (
    	Period[Month/Year] = "feb/2022" 
    		&amp;amp;&amp;amp; Period[Month/Year] &amp;lt;&amp;gt;"jan/2022" 
    		&amp;amp;&amp;amp;Period[Month/Year] &amp;lt;&amp;gt;"mar/2022"
    )
    || 
    (
    	Period[Month/Year] = "mar/2022" 
    		&amp;amp;&amp;amp; Period[Month/Year] &amp;lt;&amp;gt;"feb/2022" 
    		&amp;amp;&amp;amp;Period[Month/Year] &amp;lt;&amp;gt;"jan/2022"
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 18 Dec 2022 15:17:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2975266#M99605</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-12-18T15:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I see which clients have bought a specific product in only one of last three months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2975369#M99608</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;the thing is I need to see clients that bought in&amp;nbsp;&lt;STRONG&gt;only&lt;/STRONG&gt; one of the last three months. For example: if he bought in jan, I need the number of sales in february and march to be = 0.&lt;BR /&gt;I'm thinking about something like this, but easier:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF (
AND (
CALCULATE (
    [#Sales],
    Product[Product Name] = "XXX",
    Period[Month/Year] = "feb/2022" 
    )=0,
CALCULATE (
 [#Sales],
    Product[Product Name] = "XXX",
    Period[Month/Year] = "mar/2022" 
    )=0,
CALCULATE (
[#Sales],
Product[Product Name] = "XXX",
Period[Month/Year] = "jan/2022" 
)
))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2022 20:34:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-see-which-clients-have-bought-a-specific-product-in/m-p/2975369#M99608</guid>
      <dc:creator>felipescamilo</dc:creator>
      <dc:date>2022-12-18T20:34:22Z</dc:date>
    </item>
  </channel>
</rss>

