Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Vanessa250919
Helper V
Helper V

Dax formula summarize?

Hello,

 

I created one formula dax:

Count Distinct Agent total (VLT>0) = CALCULATE( DISTINCTCOUNT(MASTERTABLE[FULL_EMPLID]),MASTERTABLE[WLT_PO]>0,DIM_EMPLOYEE[HR_STATUS] = "ACTIVE")
 
But I have one issue, I need to calculate the nbrs of agent ACTIVE with WLT_PO >0 but WLT_PO By agent and not total WLT_PO, it's possible?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Vanessa250919 ,

 

You could use ALLEXCEPT() function.

https://docs.microsoft.com/en-us/dax/allexcept-function-dax 

Count Distinct Agent total (VLT>0) = CALCULATEDISTINCTCOUNT(MASTERTABLE[FULL_EMPLID]),FILTER(ALLEXCEPT(MASTERTABLE,[agent] ),MASTERTABLE[WLT_PO]>0,DIM_EMPLOYEE[HR_STATUS] = "ACTIVE"))

 

Best Regards,

Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Vanessa250919 ,

 

You could use ALLEXCEPT() function.

https://docs.microsoft.com/en-us/dax/allexcept-function-dax 

Count Distinct Agent total (VLT>0) = CALCULATEDISTINCTCOUNT(MASTERTABLE[FULL_EMPLID]),FILTER(ALLEXCEPT(MASTERTABLE,[agent] ),MASTERTABLE[WLT_PO]>0,DIM_EMPLOYEE[HR_STATUS] = "ACTIVE"))

 

Best Regards,

Jay

amitchandak
Super User
Super User

@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") )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.