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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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