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
DrewCarousel
Frequent Visitor

Las expresiones que producen el tipo de datos de variante no se pueden utilizar para definir columnas calculadas

Querida comunidad,

Tengo la siguiente fórmula que está devolviendo el error anterior - por favor, ¿puede ayudarme a deshacerse del problema?

Estoy tratando de lograr una columna que me da un campo de fecha y hora.

Formatos:

Canal - Texto

Cuenta de padres - Texto

Enviado : Fecha

SLA - Fecha y hora

CalcSLA á if('Master Table'[Channel]-"IE Own Network",if(OR('Master Table'[Parent Account]"CUSTOMER A",'Master Table'[Parent Account]-"CUSTOMER B"),CUSTOMER('Master Table'[Submitted],"General Number")+0.729167,if('Master Table'[Parent Cuenta]-CLIENTE C",formato('Tabla maestra'[Enviado],"Número general")+0.729167,formato('Tabla maestra'[Enviado],"Número general")+0.5)),if('Tabla maestra'[Canal]-"Red propia del Reino Unido - NOCHE",formato('Tabla maestra'[Enviado] ,"Número general")+formato('Tabla maestra'[SLA Temp],"Número general"),format('Tabla maestra'[SLA],"Número general")))
4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hola @DrewCarousel ,

Puede consultar el siguiente DAX:

CalcSLA =
IF (
    'Master Table'[Channel] = "IE Own Network",
    IF (
        OR (
            'Master Table'[Parent Account] = "CUSTOMER A",
            'Master Table'[Parent Account] = "CUSTOMER B"
        ),
        VALUE ( FORMAT ( 'Master Table'[Submitted], "General Number" ) ) + 0.729167,
        IF (
            'Master Table'[Parent Account] = "CUSTOMER C",
            VALUE ( FORMAT ( 'Master Table'[Submitted], "General Number" ) ) + 0.729167,
            VALUE ( FORMAT ( 'Master Table'[Submitted], "General Number" ) ) + 0.5
        )
    ),
    IF (
        'Master Table'[Channel] = "UK Own Network - NIGHT",
        VALUE (
            FORMAT ( 'Master Table'[Submitted], "General Number" )
                + FORMAT ( 'Master Table'[SLA Temp], "General Number" )
        ),
        VALUE ( FORMAT ( 'Master Table'[SLA Temp], "General Number" ) )
    )
)

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

@DrewCarousel , Asegúrese de que todos ellos devuelven texto add & "" para asegurarse de que en todos si y de lo contrario

Hola Amit,

Gracias por esto.

Por favor, podría editar mi fórmula original o dar más orientación sobre dónde colocar el &"".

También para confirmar, esto todavía agregará los números decimales a las fechas originales? Para reiterar, estoy buscando una salida de fecha y hora.

Saludos

Dibujó

Anonymous
Not applicable

@DrewCarousel : considerando dividir la fórmula en múltiples medidas (a,b,c) para que pueda saber exactamente dónde se está produciendo el error. A continuación, haga que su última medida de salida igual medida A + medida B + Medida C.

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.