<?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 Customer Classification problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Classification-problem/m-p/3219462#M157098</link>
    <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an &lt;EM&gt;&lt;STRONG&gt;orders&lt;/STRONG&gt;&lt;/EM&gt; table in Power BI. It contains columns: customer_id, order_id (unique for every order), time_pickup_date, total_sales (per order_id), order_status (per order_id), and _order rank (sequence of orders per customer according to time_pickup_date).&lt;BR /&gt;&lt;BR /&gt;I need to create a table visual where: The first column is the time_pickup_date, the second column is the total count (distinct customer_id) of all first-time customers, and the third column is the total count (distinct customer_id) of all returning customers. My definition of a first-time customer is if the total distinct order_id is 1 or max order is 1 while returning is 2 or more order_id.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have a customer table linked to the orders table via a one-to-many relationship using the customer_id key.&lt;BR /&gt;&lt;BR /&gt;I created a calculated column in my customer's table where if the total order is 1, "first time customer" while "returning" if 2 or more. then, I created a table visual and was filtering it by the&amp;nbsp;time_pickup_date. Here is the issue:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;for example:&amp;nbsp;&lt;BR /&gt;The customers first order was on April 1, 2022 by that time, he is a first time customer&lt;BR /&gt;Then, on April 23, 2022, he made another order making him a returning customer. The issue is when I go back to April 1, 2022 instead of showing "first time customer", he is not a returning customer because in the customers table, his total orders is now 2.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need help. It should go back to first time customer since I went back to April 1, 2022&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 08:14:47 GMT</pubDate>
    <dc:creator>Andrew_na_lang</dc:creator>
    <dc:date>2023-05-04T08:14:47Z</dc:date>
    <item>
      <title>Customer Classification problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Classification-problem/m-p/3219462#M157098</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an &lt;EM&gt;&lt;STRONG&gt;orders&lt;/STRONG&gt;&lt;/EM&gt; table in Power BI. It contains columns: customer_id, order_id (unique for every order), time_pickup_date, total_sales (per order_id), order_status (per order_id), and _order rank (sequence of orders per customer according to time_pickup_date).&lt;BR /&gt;&lt;BR /&gt;I need to create a table visual where: The first column is the time_pickup_date, the second column is the total count (distinct customer_id) of all first-time customers, and the third column is the total count (distinct customer_id) of all returning customers. My definition of a first-time customer is if the total distinct order_id is 1 or max order is 1 while returning is 2 or more order_id.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have a customer table linked to the orders table via a one-to-many relationship using the customer_id key.&lt;BR /&gt;&lt;BR /&gt;I created a calculated column in my customer's table where if the total order is 1, "first time customer" while "returning" if 2 or more. then, I created a table visual and was filtering it by the&amp;nbsp;time_pickup_date. Here is the issue:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;for example:&amp;nbsp;&lt;BR /&gt;The customers first order was on April 1, 2022 by that time, he is a first time customer&lt;BR /&gt;Then, on April 23, 2022, he made another order making him a returning customer. The issue is when I go back to April 1, 2022 instead of showing "first time customer", he is not a returning customer because in the customers table, his total orders is now 2.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need help. It should go back to first time customer since I went back to April 1, 2022&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 08:14:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Classification-problem/m-p/3219462#M157098</guid>
      <dc:creator>Andrew_na_lang</dc:creator>
      <dc:date>2023-05-04T08:14:47Z</dc:date>
    </item>
  </channel>
</rss>

