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

Mostrar 0 y dejar en blanco si null en una matriz

Tengo una medida que calcula el % de tareas que se completaron a tiempo o a tiempo que muesto en una matriz al final de la semana
Pct ([Temprano] + [Tiempo]) / [Tareas totales]

El problema viene cuando hay sólo 1 tarea en una semana y fue tarde. Esto calcularía a 0% para esa semana, pero no se muestra en la matriz. No puedo reemplazar valores en blanco o nulos por 0, ya que solo quiero que se rellene el campo si hay datos en él.

Tengo formato condicional en el color de fondo del valor como se muestra en la captura de pantalla, por lo que estoy confundido por qué no muestra el valor 0.

Capture.JPG

¿Cómo hago que se muestren los valores 0?

Tia

2 ACCEPTED SOLUTIONS
edhans
Super User
Super User

se mostrarán valores cero. ¿Está seguro de que están evaluando a cero, y no en blanco()? Suelte la medida en una tabla normal y vea cómo se ve para esos registros



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

Anonymous
Not applicable

BLANK() / (cualquier número) - BLANK().

Desde la tabla se puede ver que [Early] - BLANK() y [OnTime] - BLANK(), por lo que su suma es BLANK() también.

Mejor
D

View solution in original post

6 REPLIES 6
edhans
Super User
Super User

se mostrarán valores cero. ¿Está seguro de que están evaluando a cero, y no en blanco()? Suelte la medida en una tabla normal y vea cómo se ve para esos registros



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

¡Tienes razón! Es evaluar a blanco. Pero no debería 0/1 a 0 ? Estoy confundido por esto. ¿Cómo edito la medida para tener esto en cuenta?

Capture.JPG

Anonymous
Not applicable

BLANK() / (cualquier número) - BLANK().

Desde la tabla se puede ver que [Early] - BLANK() y [OnTime] - BLANK(), por lo que su suma es BLANK() también.

Mejor
D

¡Gracias! ¡Cambié la medida para evaluar las tareas totales y luego funciona!

Greg_Deckler
Super User
Super User

image.png


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

Debe haber una opción "está en blanco"

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.