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
Hi geniuss!!!
I'm trying to create a measure that I'll be using against a calendar table to plot number of active contacts at any given time, but I'm tearing my hair our with some of these measures...
In simple terms, I'm trying to create a measure, that will count the number of our members, at any given time, who have a qualification date of greater than or qual to *Date*
AND a leave date that is blank OR less than or equal to *Date*.
Its the 2nd part that I'm having trouble with. So far I've got to:
Solved! Go to Solution.
Hi @Anonymous
You may try
Members TEST =
VAR CurrentDate =
MAX ( '-Calendar'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( 'CE vwContact (2)'[Rics_contactno] ),
'CE vwContact (2)'[Rics_ElectionDate] >= CurrentDate,
OR (
'CE vwContact (2)'[Rics_LapsedDate] <= CurrentDate,
'CE vwContact (2)'[Rics_LapsedDate] = BLANK ()
)
)
Awesome! That works, I'm going to have to play around with getting the visualisation of active members by date but the measure works, I just had to change the Or to an AND, but its accepted in which is great.
Thank you!!
Hi @Anonymous
You may try
Members TEST =
VAR CurrentDate =
MAX ( '-Calendar'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( 'CE vwContact (2)'[Rics_contactno] ),
'CE vwContact (2)'[Rics_ElectionDate] >= CurrentDate,
OR (
'CE vwContact (2)'[Rics_LapsedDate] <= CurrentDate,
'CE vwContact (2)'[Rics_LapsedDate] = BLANK ()
)
)
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 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |