Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all, I'm fairly new to PowerBI, but after searching through the internet i haven't been able to find the solution to my problem.
I need help with my DAX formula for a measure of active contacts in our system. The formula I was given by a colleague isn't working, and I can't seem to find out why.
Active Contacts (Accum) =
CALCULATE(
COUNT('CE vwContact'[CreatedOn]),
IF('CE vwContact'[CreatedOn] <= MAX('BI vwCalendar'[Date]),
AND('CE vwContact'[Rics_LapsedDate]=BLANK
)))
After searching around and looking at other ways to doing it, I've arrived at the following, but PBI is saying there's an error in line 3, but I don't know why:
Solved! Go to Solution.
Hi @Anonymous ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Active Contacts (Accum) =
CALCULATE(DISTINCTCOUNT('CE vwContact'[Rics_contactno]),
FILTER(ALL('CE vwContact'),'CE vwContact'[CreatedOn]>=TODAY()&&'CE vwContact'[Rics_LapsedDate]<=TODAY()))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Active Contacts (Accum) =
CALCULATE(DISTINCTCOUNT('CE vwContact'[Rics_contactno]),
FILTER(ALL('CE vwContact'),'CE vwContact'[CreatedOn]>=TODAY()&&'CE vwContact'[Rics_LapsedDate]<=TODAY()))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Anonymous , check this this very similar to active employee in this blog
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
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 |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 10 | |
| 8 |