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 would like a formula that will calculate the count of new billed clients looking at the previously 12-months history of billed clients. Client 3 shows an example of a new client that wasn't billed before so the total count of all clients should be 1. The other clients, when looking at the latest column (December), that have a 1 in the December column look like they have been billed at least more than once in the previous 12 months so these should not be included in the calculation. I am looking for a formula that would use the current month as the month to use to compare to the previous 12 months.
Solved! Go to Solution.
Hi,
One of ways to solve this is, try to use EXCEPT DAX function in a measure.
EXCEPT function (DAX) - DAX | Microsoft Learn
Please try writing a measure something like similar to below.
new customer list count in current month measure: =
VAR _currentmonthcustomerlist =
DISTINCT ( Customer[Customer] )
VAR _prevelevenmonthscustomerlist =
CALCULATETABLE (
DISTINCT ( Customer[Customer] ),
DATESBETWEEN (
Calendar[Date],
EOMONTH ( MAX ( Calendar[Date] ), -12 ) + 1,
EOMONTH ( MAX ( Calendar[Date] ), -1 )
)
)
RETURN
COUNTROWS (
EXCEPT ( _currentmonthcustomerlist, _prevelevenmonthscustomerlist )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
One of ways to solve this is, try to use EXCEPT DAX function in a measure.
EXCEPT function (DAX) - DAX | Microsoft Learn
Please try writing a measure something like similar to below.
new customer list count in current month measure: =
VAR _currentmonthcustomerlist =
DISTINCT ( Customer[Customer] )
VAR _prevelevenmonthscustomerlist =
CALCULATETABLE (
DISTINCT ( Customer[Customer] ),
DATESBETWEEN (
Calendar[Date],
EOMONTH ( MAX ( Calendar[Date] ), -12 ) + 1,
EOMONTH ( MAX ( Calendar[Date] ), -1 )
)
)
RETURN
COUNTROWS (
EXCEPT ( _currentmonthcustomerlist, _prevelevenmonthscustomerlist )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
This worked, thank you!
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 |
---|---|
21 | |
15 | |
14 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
12 | |
11 |