<?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: List of oneshot customers for a specific item in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033531#M103786</link>
    <description>&lt;P&gt;&lt;img /&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;</description>
    <pubDate>Fri, 20 Jan 2023 09:52:56 GMT</pubDate>
    <dc:creator>CNENFRNL</dc:creator>
    <dc:date>2023-01-20T09:52:56Z</dc:date>
    <item>
      <title>List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033300#M103775</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to find out how I can extract a list of customers that have bought specific products with a sales amount over 15000 (regardless of the quantity), only once a year.&amp;nbsp; This is what we call oneshots.&amp;nbsp; I was able to get to the 15000 part but then I got stuck extracting the oneshots.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Result column in the below visual I tried to show what I mean.&amp;nbsp; All data are in the same table so there are no relationships to be made here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&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>Fri, 20 Jan 2023 08:04:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033300#M103775</guid>
      <dc:creator>Daro68</dc:creator>
      <dc:date>2023-01-20T08:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033403#M103779</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239254" data-lia-user-login="Daro68" class="lia-mention lia-mention-user"&gt;Daro68&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how does your order record table look like? Do you have something like order number?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 09:01:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033403#M103779</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-20T09:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033438#M103782</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Yes I have an order nr-column. Normally in Excel I solve this with a concat function, but in DAX, it is not that obvious. I even tried the 'EARLIER' function but it returned an error.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 09:21:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033438#M103782</guid>
      <dc:creator>Daro68</dc:creator>
      <dc:date>2023-01-20T09:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033531#M103786</link>
      <description>&lt;P&gt;&lt;img /&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;</description>
      <pubDate>Fri, 20 Jan 2023 09:52:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033531#M103786</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2023-01-20T09:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033648#M103790</link>
      <description>&lt;P&gt;This was really going the right way, until I stumbled upon the DocumentNo what FreemanZ is asking me about.&amp;nbsp; Your solution is exactly what I need but on my mistake I did not mention the fact that there can only be one Documentnumber per year.&amp;nbsp; I'm sorry I was not clear about that.&amp;nbsp; So there is indeed an extra column in my report which is the Documentnr.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 10:23:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3033648#M103790</guid>
      <dc:creator>Daro68</dc:creator>
      <dc:date>2023-01-20T10:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3037086#M104017</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239254" data-lia-user-login="Daro68" class="lia-mention lia-mention-user"&gt;Daro68&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In order to get a better understanding on your requirement and give you a suitable solution for you, could you please provide some&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;raw data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in the table&amp;nbsp;&lt;STRONG&gt;'Main Table'&lt;/STRONG&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;) with&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;format and your&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7CClaire.Dong%40microsoft.com%7Cada9149bd91546a8432508dacd31ef9b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638047911607737134%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=EJlYfclgtrjgAEYj9Uo1AauqxaQm3hlQsjJMo4zCY1M%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7CClaire.Dong%40microsoft.com%7Cada9149bd91546a8432508dacd31ef9b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638047911607737134%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=7UEf71Mu2ySWC7MlgciaPViM1RqU5nx4OHGHG5EvNSw%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 08:55:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3037086#M104017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-23T08:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3038038#M104080</link>
      <description>&lt;P&gt;Hello yingyinr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good thinking.&amp;nbsp; I have a pbix file ready for you here:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1Sa8RGRXE2TAu1sFte6we2PiYLKrJ5Rdn/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1Sa8RGRXE2TAu1sFte6we2PiYLKrJ5Rdn/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you will be able to fetch it.&lt;/P&gt;&lt;P&gt;So if a customer in 2022 bought an item with a value of over $15.000, only once that year it is a oneshot for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example of what I am NOT looking for.&amp;nbsp; This customer bought an item for over $15.000 but he already bought the same item for a lower amount.&amp;nbsp; So this is not a Oneshot.&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;My gratitude for your pro's is already greater than my PBI-issue right now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:50:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3038038#M104080</guid>
      <dc:creator>Daro68</dc:creator>
      <dc:date>2023-01-23T14:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3039688#M104204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239254" data-lia-user-login="Daro68" class="lia-mention lia-mention-user"&gt;Daro68&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I &lt;STRONG&gt;updated&lt;/STRONG&gt; your sample pbix file, please check if that is what you want. You can create a &lt;STRONG&gt;calculated column&lt;/STRONG&gt; as below to get it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
VAR _count =
    CALCULATE (
        DISTINCTCOUNT ( 'OneshotTable'[Line Amount] ),
        FILTER (
            'OneshotTable',
            'OneshotTable'[Sell-to Customer No_]
                = EARLIER ( 'OneshotTable'[Sell-to Customer No_] )
                &amp;amp;&amp;amp; 'OneshotTable'[Year] = EARLIER ( 'OneshotTable'[Year] )
                &amp;amp;&amp;amp; 'OneshotTable'[No_] = EARLIER ( 'OneshotTable'[No_] )
        )
    )
RETURN
    IF ( _count &amp;gt; 1, "FALSE", "TRUE" )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one is your expected result, please provide &lt;STRONG&gt;more special examples&lt;/STRONG&gt; to explain your requirement. Thank you.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 09:10:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3039688#M104204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-24T09:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3042942#M104461</link>
      <description>&lt;P&gt;Hello yingyinr,&lt;/P&gt;&lt;P&gt;It was heading the right way but unfortunately I found an error in the results.&amp;nbsp; I found a customer that bought the same item for the same amount twice, so this can not be a oneshot.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am happy though that you were able to show me how to use the EARLIER function.&amp;nbsp; It didn't work for me previously.&lt;/P&gt;&lt;P&gt;But unfortunately this not the solution yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:37:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3042942#M104461</guid>
      <dc:creator>Daro68</dc:creator>
      <dc:date>2023-01-25T14:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3043032#M104470</link>
      <description>&lt;P&gt;Hello ynigynir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I found the solution based on your proposal.&amp;nbsp; instead of DISTINCTCOUNT the LineAmount, I changed it to Document No.&amp;nbsp; And now the first tests are promising.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you are ok with it, I'll go for that solution and send you my gratitude.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:04:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3043032#M104470</guid>
      <dc:creator>Daro68</dc:creator>
      <dc:date>2023-01-25T15:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: List of oneshot customers for a specific item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3044114#M104582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239254" data-lia-user-login="Daro68" class="lia-mention lia-mention-user"&gt;Daro68&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your feedback. I'm OK, please accept your last post as the solution.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 02:02:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-oneshot-customers-for-a-specific-item/m-p/3044114#M104582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-26T02:02:25Z</dc:date>
    </item>
  </channel>
</rss>

