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