Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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! |
|
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
21 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |