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
gpiero
Skilled Sharer
Skilled Sharer

Using COUNTAX to check logical field

 

Hi,

I 'am trying to count how many rows in MyTable have MyField = Y.

 

MyField is a logical field.

 

But something goes wrong...

 

How can I solve the counting in MyField?

 

 

IDCLosed = COUNTAX('Mytable'; [MyField] = TRUE())

 

Thanks

If I can...
1 ACCEPTED SOLUTION

@Sean

thanks

It works. I had to substitute  = "Y"))  with  = true ))

 

If I can...

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

@gpiero try this Measure

IDClosed = COUNTROWS ( FILTER (Table, Table[MyField]="Y") )

@Sean

thanks

It works. I had to substitute  = "Y"))  with  = true ))

 

If I can...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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