Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
oristides
Helper I
Helper I

Old customers vs New customers. how to check that?? Help

 

I want to check 2 scenarios

 

1) I want to compare sales for the customers with less than 1 year old vs clients for more than 1 year old in a period of time X.

 

2) I want to compare total sales for the clients converted teh LAST YEAR vs the Customers converted THIS YEAR in a period of time X.

 

 

I have Converted Date of the customers. Just I don know to performance a Measure our a Running(by time) Column.

Thanks, 

1 ACCEPTED SOLUTION

@oristides

 

I assume you have a dataset likes below. We can create two measures to get the sales of old and new customers.

For example, B is created on 3/1/2014, then in 2015, old customers are A and B, new customers are C and D.

Old customers vs New customers. how to check that_1.jpg

 

Sales_OldCustomer = 
CALCULATE (
    SUM ( Sales[Amount in USD] ),
    FILTER ( Sales, YEAR ( Sales[Date] ) > RELATED ( Customer[Created Year] ) )
)
Sales_NewCustomer = 
CALCULATE (
    SUM ( Sales[Amount in USD] ),
    FILTER ( Sales, YEAR ( Sales[Date] ) = RELATED ( Customer[Created Year] ) )
)

Old customers vs New customers. how to check that_2.jpg

 

Best Regards,

Herbert

View solution in original post

10 REPLIES 10

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.