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

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.

Reply
Anonymous
Not applicable

How to calculate Total distinct row with no blank

Hello all,

 

I have a table which has value on column PortalUserId (see image below). I need to calculate the total PortalUserID with status Active and  without the blank rows.

 

My current DAX formule is :

  1.  TotalActivePortalUser = CALCULATE([TotalPortalUserID], 'Fact user license New'[Status] = "Active"). 
  2. The TotalPortalUserId is also a measure, which is TotalPortalUserID = DISTINCTCOUNT('Fact user license New'[PortalUserID]).

 

 

When i use this measure TotalActivePortalUser  it will return 6 but the expected result for my measure must be 5.

 

Any suggestions??? Many thanks!

 

 

2018-05-04 12_21_22-user license.csv - Excel.png

1 ACCEPTED SOLUTION
msornakumar
Advocate III
Advocate III

Hi ,

 

 Can you please try the below formula


TotalActivePortalUser = CALCULATE([TotalPortalUserID], 'Fact user license New'[Status] = "Active" , NOT ISBLANK('Fact user license New'[PortalUserID]) )

 

Thanks

 

Sorna

View solution in original post

2 REPLIES 2
msornakumar
Advocate III
Advocate III

Hi ,

 

 Can you please try the below formula


TotalActivePortalUser = CALCULATE([TotalPortalUserID], 'Fact user license New'[Status] = "Active" , NOT ISBLANK('Fact user license New'[PortalUserID]) )

 

Thanks

 

Sorna

Anonymous
Not applicable

It works! thank you so much!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.