Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have successfully created two measures
1) Sales MTD; and
2) Sales Prior Month to date
I want to
a) count how many customers have been sold to so far this month; and
b) count how many customers had been sold to at the same time last month
There is a relationship between Customers (DIM table) and Sales (FACT table)
Can anyone help with this as I have tried various combinations with countrow, counta, countif functions but with no luck.
Thanks for this reply - which I think will help me solve a different challenge 🙂
To count the number of unique customers sold to so far this month and at the same time last month, you can use the following DAX formulas:
Explanation:
Explanation:
Note: Make sure to replace Sales[Customer ID] with the actual name of your customer ID column in the Sales table.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
87 | |
65 | |
50 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |