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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am trying to calculate an employee count based on these conditions:
TermDate is blank or (TermDate > 4/1/2019 and Term Date <= 6/30/2019)
I have tried many combinations and it's not working. Here is my what I currently have the count is not correct.
Solved! Go to Solution.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsRegards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsGive this a try.
TEST2 =
CALCULATE ( DISTINCTCOUNT(ResourceAllocationFact[EmployeeID]),
FILTER(EmployeeDim,
OR(EmployeeDim[TermDate]= blank(),
AND(EmployeeDim[TermDate]> 4/1/2019,
EmployeeDim[TermDate]<=6/30/2019
)
)
)
)IF this doesn't work, can you outline specifically what criteria you need with some sample data and an example of the desired outcome.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 165 | |
| 132 | |
| 118 | |
| 79 | |
| 53 |