Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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 )
)
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 )
)
This worked, thank you!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
8 | |
4 | |
3 |
User | Count |
---|---|
15 | |
15 | |
11 | |
10 | |
10 |