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.
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,
Solved! Go to Solution.
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.
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] ) ) )
Best Regards,
Herbert
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |