Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
hello i need some help. i have a colum with order-dates now i need a formule that shows me if someone placed a order for the first time its a "new costumer" if the customer placed a second order then they will be a "KNow customer"
so i need a formule based on my "Order-dates" how many New customers there are. in the screenshot you will see my data model
Solved! Go to Solution.
@Krijgersss , Create a Calculated Column to Identify the First Order Date for Each Customer:
FirstOrderDate =
CALCULATE(
MIN('Orders'[OrderDate]),
ALLEXCEPT('Orders', 'Orders'[CustomerID])
)
Create a Calculated Column to Determine if the Order is the First Order:
IsFirstOrder =
IF(
'Orders'[OrderDate] = 'Orders'[FirstOrderDate],
"New Customer",
"Known Customer"
)
Create a Measure to Count the Number of New Customers:
NewCustomerCount =
CALCULATE(
DISTINCTCOUNT('Orders'[CustomerID]),
'Orders'[IsFirstOrder] = "New Customer"
)
Create a Measure to Count the Number of Known Customers:
KnownCustomerCount =
CALCULATE(
DISTINCTCOUNT('Orders'[CustomerID]),
'Orders'[IsFirstOrder] = "Known Customer"
)
Proud to be a Super User! |
|
@Krijgersss , Create a Calculated Column to Identify the First Order Date for Each Customer:
FirstOrderDate =
CALCULATE(
MIN('Orders'[OrderDate]),
ALLEXCEPT('Orders', 'Orders'[CustomerID])
)
Create a Calculated Column to Determine if the Order is the First Order:
IsFirstOrder =
IF(
'Orders'[OrderDate] = 'Orders'[FirstOrderDate],
"New Customer",
"Known Customer"
)
Create a Measure to Count the Number of New Customers:
NewCustomerCount =
CALCULATE(
DISTINCTCOUNT('Orders'[CustomerID]),
'Orders'[IsFirstOrder] = "New Customer"
)
Create a Measure to Count the Number of Known Customers:
KnownCustomerCount =
CALCULATE(
DISTINCTCOUNT('Orders'[CustomerID]),
'Orders'[IsFirstOrder] = "Known Customer"
)
Proud to be a Super User! |
|
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 7 | |
| 6 |