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
kasiaw29
Resolver II
Resolver II

Expresiones que producen un mensaje de error de tipo de datos variante en la instrucción if

Hola comunidad,

Estoy tratando de crear una columna personalizada que comprueba algunas fechas y devuelve "LATE" si cumple con criterios o una fecha en caso contrario.

Mi fórmula es la siguiente:

Inicio real ( In Start)

IF(ISBLANK(RELATED('Sub Project w Activities'[Real Start]))
&& 'Historial de actividades'[Fecha de envío acordada por el cliente más reciente]<-TODAY(),"LATE",RELATED('Sub Project w Activities'[Inicio real]))

En términos simples, si el inicio real está en blanco y la última fecha de envío acordada por el cliente es antes de hoy, entonces es tarde (se refiere a la actividad), si el inicio real está allí sólo quiero mostrarlo. He examinado el formulario y los problemas anteriores indican el uso de FORMAT, pero no veo dónde usarlo, todas mis fechas?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kasiaw29 , Un lugar que está devolviendo "Tarde" otra fecha de lugar. Dax de Power BI No permitir diferentes tipos de datos

Inténtalo como

Inicio real ( In Start)

IF(ISBLANK(RELATED('Sub Project w Activities'[Real Start]))
&& 'Historial de actividades'[Fecha de envío acordada por el cliente más reciente]<-TODAY(),"LATE",RELATED('Sub Project w Activities'[Inicio real])&"")

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@kasiaw29 , Un lugar que está devolviendo "Tarde" otra fecha de lugar. Dax de Power BI No permitir diferentes tipos de datos

Inténtalo como

Inicio real ( In Start)

IF(ISBLANK(RELATED('Sub Project w Activities'[Real Start]))
&& 'Historial de actividades'[Fecha de envío acordada por el cliente más reciente]<-TODAY(),"LATE",RELATED('Sub Project w Activities'[Inicio real])&"")

Gracias @amitchandak también he colocado FORMAT en mi resultiffalse

IF(ISBLANK(RELATED('Sub Project w Activities'[Real Start])) && 'Activity History'[Latest Customer Agreed Dispatch Date]<-TODAY(),"LATE",FORMAT(RELATED('Sub Project w Activities'[Real Start]),""))
Que simingly hace lo mismo. ¡Muchas gracias por su rápida respuesta!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.