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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
MickeLearnPBI
Helper I
Helper I

Distintcount on PersonID if true in another column

I want to count distinctcount on personid that has true in another column.
Really scratching my head right now. Anyone can give me some support in this?

 

PersonIDActive
4505010101True
4709010101 
3 REPLIES 3
some_bih
Super User
Super User

Hi @MickeLearnPBI possible solution, based on simple data sample from you and my add of two rows:

Firstly, create measure as following (replace your table name for Mytable)

CountRows = COUNTROWS(Mytable)
Second, create calculated column like below Active_as_mesure
Active_as_mesure =
IF([CountRows]=1,"True","")
 

Output 

some_bih_0-1718949923042.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Maybe the report can help to understand me?

Shared with you - OneDrive (live.com)

I still get the number 8 in my data, that is 6 with the value null, and 2 with true. But with this the number change while choosing another year (above is not my fully report). Do you have any idea?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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