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
Anonymous
Not applicable

Adición de condición/criterios para eliminar datasets en blanco

Hola Comunidad de Power BI,

Tengo una situación en la que los datos que tengo alimentzcando a tablas y múltiples gráficos de donut se sesgan en base a datos en blanco. Esto está causando un verdadero dolor de cabeza porque no estoy seguro de cómo solucionar. Actualmente, los datos se ejecutan mediante una medida como la siguiente:

Etiqueta oTD : IF(OnTimeDelivery[DayDiff2] <-5 , "Early", IF(AND(OnTimeDelivery[DayDiff2] > -4, OnTimeDelivery[DayDiff2] <-3), "On-Time", IF(OnTimeDelivery[DayDiff2] > 4, "Late", "NV")))
Lo que esto está haciendo, como se puede ver en la imagen de abajo, está haciendo que incluso los valores en blanco aparecen y se cuentan como "a tiempo" lo que está haciendo que los datos se vuelvan inexactos. ¿Hay alguna manera de agregar una función a mi medida actual que no cuente los datos en blanco? Gracias por toda su comunidad de ayuda. Voy a enviar una imagen a continuación que muestra el problema.

BlankBIsnip.png

1 REPLY 1

Hola @TophGuy84 ,

echa un vistazo al "Genio Diabólico de SWITCH TRUE"

https://powerpivotpro.com/2015/03/the-diabolical-genius-of-switch-true/

OTD Label = 
SWITCH(
       TRUE(),
       ISBLANK(OnTimeDelivery[DayDiff2]), BLANK(),
       OnTimeDelivery[DayDiff2] <= -5   , "Early",
       OnTimeDelivery[DayDiff2] <=  3   , "On-Time",
       OnTimeDelivery[DayDiff2] >=  4   , "Late",
       "NV"
       )

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.