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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.