Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |