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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ali70
Frequent Visitor

Count

Hello guys,

I have a column in which data is TRUE/FALSE.

i want to count where =True or where =false.

Thank you so much for the help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ali70 ,

 

Try this

Count True = CALCULATE(COUNT('Table'[ID]),'Table'[T/F]=TRUE())
Count False = CALCULATE(COUNT('Table'[ID]),'Table'[T/F]=FALSE())

16.png

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @ali70 ,

 

Try this

Count True = CALCULATE(COUNT('Table'[ID]),'Table'[T/F]=TRUE())
Count False = CALCULATE(COUNT('Table'[ID]),'Table'[T/F]=FALSE())

16.png

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@ali70 , if it is boolean column

 

True= countrows(filter(Table, Table[Column]))

 

false= countrows(filter(Table,not( Table[Column])))

 

 

True= countrows(filter(Table, Table[Column] = ""True"))

 

false= countrows(filter(Table, Table[Column] ="False"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello, unfortunately it is not working

@ali70 

maybe you can try to create two measures

TRUE = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Column1]=TRUE()))

FALSE = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Column1]=FALSE()))




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

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.