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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Looking to get count of ex-members (using their TIN in TIN column) from last 24 months based on MembershipEndDate.
Solved! Go to Solution.
Hi @tzaveri,
Here is the measure formula that can get rolling 2 year records and get distinct member count, you can try it if it suitable for your requirement.
formula =
VAR currDate =
MAX ( Table1[MembershipEndDate] )
RETURN
CALCULATE (
COUNTROWS ( VALUES ( Table1[TIN] ) ),
FILTER (
ALLSELECTED ( Table1 ),
[MembershipEndDate]
>= DATE ( YEAR ( currDate ) - 2, MONTH ( currDate ), DAY ( currDate )
&& [MembershipEndDate] <= currDate )
)
)
Regards,
Xiaoxin Sheng
Hi @tzaveri,
Here is the measure formula that can get rolling 2 year records and get distinct member count, you can try it if it suitable for your requirement.
formula =
VAR currDate =
MAX ( Table1[MembershipEndDate] )
RETURN
CALCULATE (
COUNTROWS ( VALUES ( Table1[TIN] ) ),
FILTER (
ALLSELECTED ( Table1 ),
[MembershipEndDate]
>= DATE ( YEAR ( currDate ) - 2, MONTH ( currDate ), DAY ( currDate )
&& [MembershipEndDate] <= currDate )
)
)
Regards,
Xiaoxin Sheng
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 20 | |
| 20 | |
| 17 | |
| 14 | |
| 14 |