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 Everyone,
I need help with the DAX formula. My question is how to calculate the first purchase for each new customers for each particular month which was closed by a sales man as well as accumulated sales closed by sales man.
Is there any way to do this?
Also I'm not able to find the option of file attachment so that I can provide my working file.
Thanks in advance.
Warm Regards,
Harsh
Solved! Go to Solution.
Assuming you have a Calendar table with your months, and a Salesman table that lists your Salesmen and a Sales table that lists the sales, you should be able to put the month column from the calendar table, the salesman column from the salesman table and the sale amount from the sales table all on a matrix and set the sales amount column to "Sum". That will give you the total sales for the saleman for the month.
The first part of your question is trickier. First you have to define "new customer". Does it mean never had a purchase ? or didn't purchase last year ? there are many ways of defining it.
The next issue is do you mean "new customer" for a particular sales man... or "new customer" in terms of any sales to that customer by any salesman ? One way you will have to use CALCULATE to get ALL the sales and then filter for sales that happened before the current date, the other way you will have to add a filter for the salesman, so you can see if the customer ever bought from a particular salesman before.
Help when you know. Ask when you don't!
Assuming you have a Calendar table with your months, and a Salesman table that lists your Salesmen and a Sales table that lists the sales, you should be able to put the month column from the calendar table, the salesman column from the salesman table and the sale amount from the sales table all on a matrix and set the sales amount column to "Sum". That will give you the total sales for the saleman for the month.
The first part of your question is trickier. First you have to define "new customer". Does it mean never had a purchase ? or didn't purchase last year ? there are many ways of defining it.
The next issue is do you mean "new customer" for a particular sales man... or "new customer" in terms of any sales to that customer by any salesman ? One way you will have to use CALCULATE to get ALL the sales and then filter for sales that happened before the current date, the other way you will have to add a filter for the salesman, so you can see if the customer ever bought from a particular salesman before.
Help when you know. Ask when you don't!
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 |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |