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
SJ25
Resolver I
Resolver I

Uso de NOT ISBLANK como filtro

Esto debería ser bastante simple, ya que he hecho esto antes y ha funcionado muy bien. Estoy tratando de contar filas que no están en blanco y luego está la sintaxis que estoy usando:

CALCULATE(COUNTROWS('TableName'),FILTER('TableName', NOT(ISBLANK('Tablename'[Sales Order]))))))
Pero esto me da un recuento de todas las filas, ¿por qué no funciona esto?

Me da el valor correcto cuando uso <> BLANK pero ¿qué tiene de malo el método anterior?
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SJ25 ,

Compruebe si su columna tiene algún espacio de recorte de los

y luego pruebe CALCULATE(COUNTROWS('TableName'),FILTER('TableName', NOT(ISBLANK('Tablename'[Sales Order]) && 'Tablename'[Sales Order] <> "" ))))

View solution in original post

5 REPLIES 5
v-shex-msft
Community Support
Community Support

HI @SJ25,

Compruebe los registros de tabla para confirmar si el tipo de campo ha existido o si existían nuevos valores en los registros. (caracteres vacíos, nulos, en blanco, "" o específicos)
Además, creo que ayudará si comparte algunos datos ficticios para probar.

Cómo obtener respuesta rápida a su pregunta

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@SJ25 ,

Compruebe si su columna tiene algún espacio de recorte de los

y luego pruebe CALCULATE(COUNTROWS('TableName'),FILTER('TableName', NOT(ISBLANK('Tablename'[Sales Order]) && 'Tablename'[Sales Order] <> "" ))))

sanimesa
Post Prodigy
Post Prodigy

Lo intenté y funcionó como se esperaba. ¿Puede comprobar la sintaxis? Parece que algo está apagado.

parry2k
Super User
Super User

@SJ25 depende de cuál es el tipo de datos de la columna en la que está comprobando BLANK(), lea más sobre esto aquí

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Ashish_Mathur
Super User
Super User

Hola

Esta medida simplificada debería funcionar

=COUNTROWS(FILTER('TableName',VALUES('Tablename'[Sales Order])<>BLANK()))


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.