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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
saivina2920
Post Prodigy
Post Prodigy

Getting count difficult from column values like true or false in power bi

I have column like status1 snd status2. These column contains true or false. 

 

i am getting count in difficult from column values like true or false.

 

How to achieve and get the exact count.

 

Sample data and Epected OUTPUT as mentioned below.

 

saivina2920_0-1618491282654.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@saivina2920 , Create two measures like

 


counrows(filter(Table, Table[Status1] =True()))

and

counrows(filter(Table, Table[Status2] =True()))

 

if they are boolean then

 


counrows(filter(Table, Table[Status1] ="TRUE"))

 

and

 

counrows(filter(Table, Table[Status2] ="TRUE"))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@saivina2920 , Create two measures like

 


counrows(filter(Table, Table[Status1] =True()))

and

counrows(filter(Table, Table[Status2] =True()))

 

if they are boolean then

 


counrows(filter(Table, Table[Status1] ="TRUE"))

 

and

 

counrows(filter(Table, Table[Status2] ="TRUE"))

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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