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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
I created one formula dax:
Solved! Go to Solution.
Hi @Vanessa250919 ,
You could use ALLEXCEPT() function.
https://docs.microsoft.com/en-us/dax/allexcept-function-dax
Count Distinct Agent total (VLT>0) = CALCULATE( DISTINCTCOUNT(MASTERTABLE[FULL_EMPLID]),FILTER(ALLEXCEPT(MASTERTABLE,[agent] ),MASTERTABLE[WLT_PO]>0,DIM_EMPLOYEE[HR_STATUS] = "ACTIVE"))
Best Regards,
Jay
Hi @Vanessa250919 ,
You could use ALLEXCEPT() function.
https://docs.microsoft.com/en-us/dax/allexcept-function-dax
Count Distinct Agent total (VLT>0) = CALCULATE( DISTINCTCOUNT(MASTERTABLE[FULL_EMPLID]),FILTER(ALLEXCEPT(MASTERTABLE,[agent] ),MASTERTABLE[WLT_PO]>0,DIM_EMPLOYEE[HR_STATUS] = "ACTIVE"))
Best Regards,
Jay
@Vanessa250919 ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Try like
Count Distinct Agent total (VLT>0) = CALCULATE( DISTINCTCOUNT(MASTERTABLE[FULL_EMPLID]),Filter(MASTERTABLE,MASTERTABLE[WLT_PO]>0),Filter(DIM_EMPLOYEE, DIM_EMPLOYEE[HR_STATUS] = "ACTIVE") )
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
18 | |
13 | |
7 | |
5 |