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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Coto
New Member

Funcion Counta

Hola comunidad


Tengo la siguiente tabla en excel y cargada en power bi, ver imagen.

 

Counta.png

 

Estoy usando la función count para CONTAR las filas de la columna cantidad, pero no entiendo que algo o algo salga mal ya que debería contar 6 filas y solo cuenta 5.

 

Counta1.png

Entiendo que la función count cuenta las filas incluyendo los valores que no están en blanco, pero no lo está haciendo

 

por favor ayuda, gracias

1 ACCEPTED SOLUTION
Coto
New Member

Thanks for the quick answer, but, it's not what I need to know, I could also use count and count the rows of the price column, I would get the same result. What I really want to know is why counta is not counting null values.

View solution in original post

3 REPLIES 3
Coto
New Member

Thanks for the quick answer, but, it's not what I need to know, I could also use count and count the rows of the price column, I would get the same result. What I really want to know is why counta is not counting null values.

where are null? it is empty and therefore does not count it.

in model null will be empty,

if you need to count rows, then you need to use COUNTROWS()

Ahmedx
Super User
Super User

place COUNT write next measure

measure = DISTINCTCOUNT('Table'[Producto])

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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