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! Learn more

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
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!

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.