Skip to content

Percentage of Total Sales from New Customers Only

>> Download the sample (Power BI)

This sample shows:

(i) Total Sales
(ii) Total sales from new customers
(iii) The percentage of sales from new customers only

No. of New Customer (factoring in a 1500 Day Churn Rate)

Section titled “No. of New Customer (factoring in a 1500 Day Churn Rate)”
No. of New Customer (factoring in a 1500 Day Churn Rate) =
VAR CustomerTM =
VALUES ( Sales_Table[Customer] )
VAR PriorCustomers =
CALCULATETABLE (
VALUES ( Sales_Table[Customer] ),
FILTER (
ALL ( Calendar_Table ),
Calendar_Table[Date]
> MIN ( Calendar_Table[Date] ) - 1500
&& Calendar_Table[Date] < MIN ( Calendar_Table[Date] )
)
)
RETURN
COUNTROWS ( EXCEPT ( CustomerTM, PriorCustomers ) )

Percentage of Sales from New Customers Only

Section titled “Percentage of Sales from New Customers Only”
Percentage of Sales from New Customers Only =
DIVIDE (
[Total Sales from New Customers Only (factoring in a 1500 Day Churn Rate)],
[Total Sales],
0
)
Total Sales =
SUMX ( Sales_Table, Sales_Table[Unit Price] * Sales_Table[Quantity] )

Total Sales from New Customers Only (factoring in a 1500 Day Churn Rate)

Section titled “Total Sales from New Customers Only (factoring in a 1500 Day Churn Rate)”
Total Sales from New Customers Only (factoring in a 1500 Day Churn Rate) =
VAR CustomerTM =
VALUES ( Sales_Table[Customer] )
VAR PriorCustomers =
CALCULATETABLE (
VALUES ( Sales_Table[Customer] ),
FILTER (
ALL ( Calendar_Table ),
Calendar_Table[Date]
> MIN ( Calendar_Table[Date] ) - 1500
&& Calendar_Table[Date] < MIN ( Calendar_Table[Date] )
)
)
RETURN
CALCULATE ( [Total Sales], EXCEPT ( CustomerTM, PriorCustomers ) )
Calendar_Table =
GENERATE (
CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2019, 12, 31 ) ),
VAR currentDay = [Date]
VAR Day =
DAY ( currentDay )
VAR Month =
MONTH ( currentDay )
VAR Year =
YEAR ( currentDay )
RETURN
ROW ( "Day", day, "Month", month, "Year", year )
)