Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi everyone,
I'm thinking this should be pretty easy, but I'm having a hard time figuring out where I'm going wrong.
I am attempting to get an active customer count on a monthly basis (Active means any Customer who has purchased something in the last 12 months)
I need it to be like the following:
January 2023 = Distinct Count of Customers who bought between 2/1/22 - 1/31/23
February 2023 = Distinct Count of Customers who bought between 3/1/22 - 2/28/23
March 2023 = Distinct Count of Customers who bought between 4/1/22 - 3/31/23
And so on....
I have a Sales table with the Customer ID and the Sales Date. Additionally, I have a Calendar Table with just a date for each day.
I currently have a measure that has the following:
Solved! Go to Solution.
I was able to figure it out. This was the measure that got it to work:
I was able to figure it out. This was the measure that got it to work:
Any ideas, anyone?
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
23 | |
21 | |
20 | |
13 | |
12 |
User | Count |
---|---|
41 | |
31 | |
23 | |
23 | |
22 |