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
desarrolloaudit
New Member

Sustitución (en blanco) por 0

Estoy tratando de reemplazar el valor (En blanco) en una tarjeta numérica con 0, pero al realizar la fórmula obtengo este error (Expresiones que producen tipo de datos variante no se puede utilizar para definir columnas calculadas.) ¿Cómo puedo arreglarlo?

La fórmula es:

Column = IF(ISBLANK('Formato medidas de prevencion'[Medida de prevención implementada]),0,'Formato medidas de prevencion'[Medida de prevención implementada])
1 ACCEPTED SOLUTION

@desarrolloaudit tienes que simplemente añadir una medida como esta y usar esta en cada tarjeta mientras filtras cada tarjeta

Count = COUNTROWS ( Table) + 0

Utilice la medida anterior en cada tarjeta.

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

Visítenos en https://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



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.

View solution in original post

9 REPLIES 9
Anand24
Super User
Super User

Hola @desarrolloaudit ,

Puede hacerlo muy fácilmente con Power Query Editor(PQE) en los siguientes pasos:

Abra PQE -> Haga clic con el botón derecho en el nombre de la columna -> Reemplazar valores -> Mantener el valor en Buscar en blanco y escriba 0 en Reemplazar con campo -> Aceptar

Dale un pulgar hacia arriba si este post te ayudó de alguna manera y marca este post como solución si resolvió tu consulta !!!

@Anand24 

 

It didn't work

desarrolloaudit_0-1597265650002.png

 

@desarrolloaudit tienes que simplemente añadir una medida como esta y usar esta en cada tarjeta mientras filtras cada tarjeta

Count = COUNTROWS ( Table) + 0

Utilice la medida anterior en cada tarjeta.

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

Visítenos en https://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



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.

parry2k
Super User
Super User

@desarrolloaudit simplemente puede hacer +0

Measure = SUM ( Tabe[Amount] ) + 0

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

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



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.

@parry2k

Lo que sucede es que los valores de esa columna son texto, y la tarjeta solo cuenta cuántas veces ese valor aparece en la columna

@desarrolloaudit no importa si es un recuento de una columna de texto o una suma de columna de número, al final ambos devuelven un número y +0 lo hará.

Si esa no es su pregunta, proporcione más contexto con ejemplos. Lee este post para obtener tu respuesta rápidamente.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

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

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



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.

@parry2k

Cuando creo la medida con la fórmula que me diste, obtengo este error

Captura1.PNGCaptura2.PNGCaptura3.PNG

@desarrolloaudit No sé cuál es el tipo de datos de sus columnas, si está tratando de sumar su columna de texto, no funcionará, necesita compartir datos de muestra y lo que está tratando de lograr. si es una columna de texto, utilice count en lugar de sum. Estoy disparando en la oscuridad,



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.

@parry2k

Tengo esta base de datos con registros de varias personas y delante tiene una acción que esa persona realizó, la columna de acción [Medida de prevención sóla] está en formato de texto

Captura3.PNG

Yo creo estas tarjetas para que PowerBI pueda decirme cuántos registros tiene cada acción usando el filtro para que la tarjeta seleccione sólo una acción específica, junto con la suma total de todos los registros que está en verde

Captura2.PNG

Cuando selecciono a una persona que tiene 0 valores en cualquier acción que aparezca en la tarjeta (en blanco), quiero reemplazar eso (en blanco) con el valor 0

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.