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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.