Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
harirao
Post Prodigy
Post Prodigy

Nivel de fila Cálculo porcentual para cada línea que tiene 9 condiciones.

Hola a todos

Quiero calcular la diferencia %, dando 9 condición mencionada a continuación para cada cálculo de nivel de fila.

S.NoCURPUrpSFRPDiferencia %Dax para cada cálculo de nivel de fila
1 N/ASI las tres columnas están en blanco
2100 90(90/100)%SFRP/CURP. Cuando URP está en blanco
3 5090(90/50)%SFRP/URP. Cuando CURP está en blanco
4 90(90/1)%SFRP/1. Cuando CURP y URP están en blanco
5100 (1/100)%1/CURP. Cuando SFRP y URP están en blanco
6 50 (1/50)%1/URP. Cuando SFRP y CURP están en blanco
7100100100(100/100)% - 0%Debe ser 0% cuando todos tienen el mismo valor
801005050%Cuando CURP es 0 considere el valor SFRP como Porcentaje
9005050%Cuando CURP y URP son 0, considere el valor SFRP como Porcentaje
100000%Cuando CURP, URP y SFRP son 0, considere el valor como Porcentaje


Por favor, compruebe y corríjame si por debajo de DAX es correcto para la Condición 2 a 6 que intenté.
Diffirent% =

Condición-2
IF('DATA'[URP-Unconstrained Requirement Plan]-BLANK(),
DIVIDE('DATA'[SFRP- Submitted Final Requirement Plan],'DATA'[CURP-Consolidated URP]),
Condición-3
IF('DATA'[CURP-Consolidated URP]-BLANK(),
DIVIDE('DATA'[SFRP- Submitted Final Requirement Plan],'DATA'[URP-Unconstrained Requirement Plan]),
Condición-4
IF(AND('DATA'[CURP-Consolidated URP]-BLANK(),'DATA'[URP-Unconstrained Requirement Plan]-BLANK()),
DIVIDE('DATA'[SFRP- Plan de Requisito Final Presentado],1),
Condición-5
IF(AND('DATA'[URP-Unconstrained Requirement Plan]-BLANK(),'DATA'[SFRP- Submitted Final Requirement Plan]-BLANK()),
DIVIDE(1,'DATA'[CURP-Consolidated URP]),
condición-6
IF(AND('DATA'[CURP-Consolidated URP]-BLANK(),'DATA'[SFRP- Submitted Final Requirement Plan]-BLANK()),
DIVIDE(1,'DATA'[URP-Unconstrained Requirement Plan],0))))))
No pude dar condition1, donde las tres filas están en blanco es NA, aquí las tres columnas están en formato "Número entero"
Por favor, ayúdame en las condiciones restantes también en DAX único.



PBI trabajando
PBIscreen.PNG

saludos
Hari

1 ACCEPTED SOLUTION

Hola @harirao ,

Para la medida, utilice lo siguiente:

Medida de Porcentajedesa
INTERRUPTOR (
    VERDADERO (),
    Condición No.1
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && SUM ( 'Datos'[CURP-Consolidated URP] ) > 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] )
    ),
    Condición No.2
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && SUM ( 'Data'[URP-Unconstrained Requirement Plan] ) > 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[Plan de requisitos sin restricciones URP] )
    ),
    Condición No.3
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && SUM ( 'Datos'[URP consolidado CURP] ) > 0, DIVIDE ( 1, SUM ( 'Data'[CURP-Consolidated URP] ) ),
    Condición No.4
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
        ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.19
    SUM ( 'Datos'[URP consolidado CURP] ) - 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] )
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.6
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
        ) á 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) > 0, DIVIDE ( 1, SUM ( 'Data'[URP-Unconstrained Requirement Plan] ) ),
    Condición No.7
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
        ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
        ) - 0, 0,
    Condición No.8 y Condición No.9 
    SUM ( 'Datos'[Plan de requisitos sin restricciones URP] )
        • SUM ('Datos'[SFRP- Plan de requisitos finales presentado] )
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] )
            • SUM ( 'Datos'[URP consolidado CURP] ), 0,
    Condición No.10 y Condición No.12
    SUM ( [CURP-Consolidated URP] ) - 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.11
    SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) - 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP consolidado CURP] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] )
    ),
    Condición No.13
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP consolidado CURP] ) - 0, DIVIDE ( SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ), 100 ),
    Condición No.14
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) - 0, DIVIDE ( SUM ( 'Data'[SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.15 y Condición No.16 y Condición No.17
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && (
            SUM ( 'Datos'[URP consolidado CURP] ) - 0
                || CALCULAR (
                    COUNTROWS ( 'Datos' ),
                    NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
                ) á 0
        ), 0,
    Condición No.18
    SUM ( 'Datos'[SFRP- Presentado FinalPlan de requisitos] ) , 0, 0,
    Condición predeterminada
    DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] ),
        0 )
)

Para el mismo número, creemos que puede porque es un número decimel pero mostrar como número entero.

Para coulmn:

Diffirent% Column =
SWITCH (
    TRUE (),
    //Condition No.1
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && [CURP-Consolidated URP] > 0
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], [CURP-Consolidated URP] ),
    //Condition No.2
    ISBLANK ( [CURP-Consolidated URP] )
        && [URP-Unconstrained Requirement Plan] > 0
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE (
        [SFRP- Submitted Final Requirement Plan],
        [URP-Unconstrained Requirement Plan]
    ),
    //Condition No.3
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && [CURP-Consolidated URP] > 0, DIVIDE ( 1, [CURP-Consolidated URP] ),
    //Condition No.4
    ISBLANK ( [CURP-Consolidated URP] )
        && ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.19
    [CURP-Consolidated URP] = 0
        && [URP-Unconstrained Requirement Plan] = 0
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.6
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && ISBLANK ( [CURP-Consolidated URP] )
        && [URP-Unconstrained Requirement Plan] > 0, DIVIDE ( 1, [URP-Unconstrained Requirement Plan] ),
    //Condition No.7
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && ISBLANK ( [CURP-Consolidated URP] ), 0,
    //Condition No.8 & Condition No.9 
    ROUND (
        [URP-Unconstrained Requirement Plan],
        0
    )
        = ROUND ( [SFRP- Submitted Final Requirement Plan], 0 )
        && ROUND ( [SFRP- Submitted Final Requirement Plan], 0 )
            = ROUND ( [CURP-Consolidated URP], 0 ), 0,
    //Condition No.10 & Condition No.12
    [CURP-Consolidated URP] = 0
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [URP-Unconstrained Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.11
    [URP-Unconstrained Requirement Plan] = 0
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [CURP-Consolidated URP] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], [CURP-Consolidated URP] ),
    //Condition No.13
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [CURP-Consolidated URP] = 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.14
    ISBLANK ( [CURP-Consolidated URP] )
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [URP-Unconstrained Requirement Plan] = 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.15 & Condition No.16 & Condition No.17
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && (
            [CURP-Consolidated URP] = 0
                || ISBLANK ( [CURP-Consolidated URP] )
        ), 0,
    //Condition No.18
    [SFRP- Submitted Final Requirement Plan] = 0, 0,
    //Default Condition
    DIVIDE (
        [SFRP- Submitted Final Requirement Plan],
        [CURP-Consolidated URP],
        0
    )
)

Para la medida:

Medida de Porcentajedesa
INTERRUPTOR (
    VERDADERO (),
    Condición No.1
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && SUM ( 'Datos'[CURP-Consolidated URP] ) > 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] )
    ),
    Condición No.2
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && SUM ( 'Data'[URP-Unconstrained Requirement Plan] ) > 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[Plan de requisitos sin restricciones URP] )
    ),
    Condición No.3
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && SUM ( 'Datos'[URP consolidado CURP] ) > 0, DIVIDE ( 1, SUM ( 'Data'[CURP-Consolidated URP] ) ),
    Condición No.4
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
        ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.19
    SUM ( 'Datos'[URP consolidado CURP] ) - 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] )
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.6
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
        ) á 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) > 0, DIVIDE ( 1, SUM ( 'Data'[URP-Unconstrained Requirement Plan] ) ),
    Condición No.7
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
        ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
        ) - 0, 0,
    Condición No.8 y Condición No.9 
    ROUND (
        SUM ( 'Datos'[Plan de requisitos sin restricciones URP] ),
        0
    )
        • ROUND ( SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ), 0 )
        && ROUND ( SUM ( 'Data'[SFRP- Submitted Final Requirement Plan] ), 0 )
            • ROUND ( SUM ( 'Datos'[URP consolidado CURP] ), 0 ), 0,
    Condición No.10 y Condición No.12
    SUM ( [CURP-Consolidated URP] ) - 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.11
    SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) - 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP consolidado CURP] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] )
    ),
    Condición No.13
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP consolidado CURP] ) - 0, DIVIDE ( SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ), 100 ),
    Condición No.14
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) - 0, DIVIDE ( SUM ( 'Data'[SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.15 y Condición No.16 y Condición No.17
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && (
            SUM ( 'Datos'[URP consolidado CURP] ) - 0
                || CALCULAR (
                    COUNTROWS ( 'Datos' ),
                    NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
                ) á 0), 0,
    Condición No.18
    SUM ( 'Datos'[SFRP- Plan de requisitos finales presentados] ) - 0, 0,
    Condición predeterminada
    DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] ),
        0 )
)


Saludos

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

33 REPLIES 33

Hola @v miembro-msft ,

Gracias por su respone, una pequeña actualización requerida de usted
La condición 3 no está funcionando cuando SFRP está en blanco, por defecto tenemos que considerarlo como 1 resultado debe ser (1/75-1%, 1/8-13%) pero estoy recibiendo 0% que está mal según nuestras condiciones.
Blank.PNG

saludos

Día

Hola @harirao ,

Utilice lo siguiente , encontramos que la Condición 5 y la Condición 3 son las mismas, por lo que eliminamos una.

Para columna:

Diffirent% Column =
SWITCH (
    TRUE (),
    //Condition No.1
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && [CURP-Consolidated URP] > 0
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], [CURP-Consolidated URP] ),
    //Condition No.2
    ISBLANK ( [CURP-Consolidated URP] )
        && [URP-Unconstrained Requirement Plan] > 0
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE (
        [SFRP- Submitted Final Requirement Plan],
        [URP-Unconstrained Requirement Plan]
    ),
    //Condition No.3
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && [CURP-Consolidated URP] > 0, DIVIDE ( 1, [CURP-Consolidated URP] ),
    //Condition No.4
    ISBLANK ( [CURP-Consolidated URP] )
        && ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.19
    [CURP-Consolidated URP] = 0
        && [URP-Unconstrained Requirement Plan] = 0
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.6
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && ISBLANK ( [CURP-Consolidated URP] )
        && [URP-Unconstrained Requirement Plan] > 0, DIVIDE ( 1, [URP-Unconstrained Requirement Plan] ),
    //Condition No.7
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && ISBLANK ( [CURP-Consolidated URP] ), 0,
    //Condition No.8 & Condition No.9 
    [URP-Unconstrained Requirement Plan] = [SFRP- Submitted Final Requirement Plan]
        && [SFRP- Submitted Final Requirement Plan] = [CURP-Consolidated URP], 0,
    //Condition No.10 & Condition No.12
    [CURP-Consolidated URP] = 0
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [URP-Unconstrained Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.11
    [URP-Unconstrained Requirement Plan] = 0
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [CURP-Consolidated URP] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], [CURP-Consolidated URP] ),
    //Condition No.13
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [CURP-Consolidated URP] = 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.14
    ISBLANK ( [CURP-Consolidated URP] )
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [URP-Unconstrained Requirement Plan] = 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.15 & Condition No.16 & Condition No.17
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && (
            [CURP-Consolidated URP] = 0
                || ISBLANK ( [CURP-Consolidated URP] )
        ), 0,
    //Condition No.18
    [SFRP- Submitted Final Requirement Plan] = 0, 0,
    //Default Condition
    DIVIDE (
        [SFRP- Submitted Final Requirement Plan],
        [CURP-Consolidated URP],
        0
    )
)

Para la medida:

Diffirent% Column =
SWITCH (
    TRUE (),
    //Condition No.1
    CALCULATE (
        COUNTROWS ( 'Data' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] ) )
    ) = 0
        && [CURP-Consolidated URP] > 0
        && SUM ( [SFRP- Submitted Final Requirement Plan] ) > 0, DIVIDE (
        SUM ( [SFRP- Submitted Final Requirement Plan] ),
        SUM ( [CURP-Consolidated URP] )
    ),
    //Condition No.2
    CALCULATE (
        COUNTROWS ( 'Data' ),
        NOT ( ISBLANK ( 'Data'[CURP-Consolidated URP] ) )
    ) = 0
        && SUM ( [URP-Unconstrained Requirement Plan] ) > 0
        && SUM ( [SFRP- Submitted Final Requirement Plan] ) > 0, DIVIDE (
        SUM ( [SFRP- Submitted Final Requirement Plan] ),
        SUM ( [URP-Unconstrained Requirement Plan] )
    ),
    //Condition No.3
    CALCULATE (
            COUNTROWS ( 'Data' ),
            NOT ( ISBLANK ( 'Data'[SFRP- Submitted Final Requirement Plan] ) )
        ) = 0
        && [CURP-Consolidated URP] > 0, DIVIDE ( 1, SUM ( [CURP-Consolidated URP] ) ),
    //Condition No.4
    CALCULATE (
        COUNTROWS ( 'Data' ),
        NOT ( ISBLANK ( 'Data'[CURP-Consolidated URP] ) )
    ) = 0
        && CALCULATE (
            COUNTROWS ( 'Data' ),
            NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] ) )
        ) = 0
        && SUM ( [SFRP- Submitted Final Requirement Plan] ) > 0, DIVIDE ( SUM ( [SFRP- Submitted Final Requirement Plan] ), 100 ),
    //Condition No.19
    SUM ( [CURP-Consolidated URP] ) = 0
        && SUM ( [URP-Unconstrained Requirement Plan] ) = 0
        && SUM ( [SFRP- Submitted Final Requirement Plan] ) > 0, DIVIDE ( SUM ( [SFRP- Submitted Final Requirement Plan] ), 100 ),
    //Condition No.6
    CALCULATE (
        COUNTROWS ( 'Data' ),
        NOT ( ISBLANK ( 'Data'[SFRP- Submitted Final Requirement Plan] ) )
    ) = 0
        && CALCULATE (
            COUNTROWS ( 'Data' ),
            NOT ( ISBLANK ( 'Data'[CURP-Consolidated URP] ) )
        ) = 0
        && SUM ( [URP-Unconstrained Requirement Plan] ) > 0, DIVIDE ( 1, SUM ( [URP-Unconstrained Requirement Plan] ) ),
    //Condition No.7
    CALCULATE (
        COUNTROWS ( 'Data' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] ) )
    ) = 0
        && CALCULATE (
            COUNTROWS ( 'Data' ),
            NOT ( ISBLANK ( 'Data'[SFRP- Submitted Final Requirement Plan] ) )
        ) = 0
        && CALCULATE (
            COUNTROWS ( 'Data' ),
            NOT ( ISBLANK ( 'Data'[CURP-Consolidated URP] ) )
        ) = 0, 0,
    //Condition No.8 & Condition No.9 
    [URP-Unconstrained Requirement Plan] = [SFRP- Submitted Final Requirement Plan]
        && [SFRP- Submitted Final Requirement Plan] = [CURP-Consolidated URP], 0,
    //Condition No.10 & Condition No.12
    SUM ( [CURP-Consolidated URP] ) = 0
        && SUM ( [SFRP- Submitted Final Requirement Plan] ) > 0
        && SUM ( [URP-Unconstrained Requirement Plan] ) > 0, DIVIDE ( SUM ( [SFRP- Submitted Final Requirement Plan] ), 100 ),
    //Condition No.11
    SUM ( [URP-Unconstrained Requirement Plan] ) = 0
        && SUM ( [SFRP- Submitted Final Requirement Plan] ) > 0
        && [CURP-Consolidated URP] > 0, DIVIDE (
        SUM ( [SFRP- Submitted Final Requirement Plan] ),
        SUM ( [CURP-Consolidated URP] )
    ),
    //Condition No.13
    CALCULATE (
        COUNTROWS ( 'Data' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] ) )
    ) = 0
        && SUM ( [SFRP- Submitted Final Requirement Plan] ) > 0
        && SUM ( [CURP-Consolidated URP] ) = 0, DIVIDE ( SUM ( [SFRP- Submitted Final Requirement Plan] ), 100 ),
    //Condition No.14
    CALCULATE (
        COUNTROWS ( 'Data' ),
        NOT ( ISBLANK ( 'Data'[CURP-Consolidated URP] ) )
    ) = 0
        && SUM ( [SFRP- Submitted Final Requirement Plan] ) > 0
        && SUM ( [URP-Unconstrained Requirement Plan] ) = 0, DIVIDE ( SUM ( [SFRP- Submitted Final Requirement Plan] ), 100 ),
    //Condition No.15 & Condition No.16 & Condition No.17
    CALCULATE (
        COUNTROWS ( 'Data' ),
        NOT ( ISBLANK ( 'Data'[SFRP- Submitted Final Requirement Plan] ) )
    ) = 0
        && (
            SUM ( [CURP-Consolidated URP] ) = 0
                || CALCULATE (
                    COUNTROWS ( 'Data' ),
                    NOT ( ISBLANK ( 'Data'[CURP-Consolidated URP] ) )
                ) = 0
        ), 0,
    //Condition No.18
    SUM ( [SFRP- Submitted Final Requirement Plan] ) = 0, 0,
    //Default Condition
    DIVIDE (
        SUM ( [SFRP- Submitted Final Requirement Plan] ),
        SUM ( [CURP-Consolidated URP] ),
        0
    )
)


Saludos

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hola @v-lid-msft

Después de implementar, por encima de la deferencia% Columna, pocas condiciones no están calculando correctamente

ID de productoCURPUrpSFRPCondición -8Debe ser 0% cuando todos tienen el mismo valor
863180-0017770%
866987-0011110%
863180-0016660%
866987-0011110%
ID de productoCURPUrpSFRPCondición -1DEFAULT: SFRP/CURP
863285-001115500%
866974-001113300%
863285-001115500%
866974-001113300%


cond-.PNG

Por favor, ayúdame en lo anterior.

Nota: No puedo utilizar la medida, como obtener por debajo del error en las condiciones 1, 3, 8, 9 y 11

Gracias y saludos,
Hari

Hola @v miembro-msft ,

¿Puede usted por favor ayudarme en la corrección de problemas anteriores en pocas condiciones

saludos

Día

Hola @harirao ,

Para la medida, utilice lo siguiente:

Medida de Porcentajedesa
INTERRUPTOR (
    VERDADERO (),
    Condición No.1
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && SUM ( 'Datos'[CURP-Consolidated URP] ) > 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] )
    ),
    Condición No.2
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && SUM ( 'Data'[URP-Unconstrained Requirement Plan] ) > 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[Plan de requisitos sin restricciones URP] )
    ),
    Condición No.3
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && SUM ( 'Datos'[URP consolidado CURP] ) > 0, DIVIDE ( 1, SUM ( 'Data'[CURP-Consolidated URP] ) ),
    Condición No.4
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
        ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.19
    SUM ( 'Datos'[URP consolidado CURP] ) - 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] )
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.6
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
        ) á 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) > 0, DIVIDE ( 1, SUM ( 'Data'[URP-Unconstrained Requirement Plan] ) ),
    Condición No.7
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
        ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
        ) - 0, 0,
    Condición No.8 y Condición No.9 
    SUM ( 'Datos'[Plan de requisitos sin restricciones URP] )
        • SUM ('Datos'[SFRP- Plan de requisitos finales presentado] )
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] )
            • SUM ( 'Datos'[URP consolidado CURP] ), 0,
    Condición No.10 y Condición No.12
    SUM ( [CURP-Consolidated URP] ) - 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.11
    SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) - 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP consolidado CURP] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] )
    ),
    Condición No.13
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP consolidado CURP] ) - 0, DIVIDE ( SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ), 100 ),
    Condición No.14
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) - 0, DIVIDE ( SUM ( 'Data'[SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.15 y Condición No.16 y Condición No.17
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && (
            SUM ( 'Datos'[URP consolidado CURP] ) - 0
                || CALCULAR (
                    COUNTROWS ( 'Datos' ),
                    NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
                ) á 0
        ), 0,
    Condición No.18
    SUM ( 'Datos'[SFRP- Presentado FinalPlan de requisitos] ) , 0, 0,
    Condición predeterminada
    DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] ),
        0 )
)

Para el mismo número, creemos que puede porque es un número decimel pero mostrar como número entero.

Para coulmn:

Diffirent% Column =
SWITCH (
    TRUE (),
    //Condition No.1
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && [CURP-Consolidated URP] > 0
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], [CURP-Consolidated URP] ),
    //Condition No.2
    ISBLANK ( [CURP-Consolidated URP] )
        && [URP-Unconstrained Requirement Plan] > 0
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE (
        [SFRP- Submitted Final Requirement Plan],
        [URP-Unconstrained Requirement Plan]
    ),
    //Condition No.3
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && [CURP-Consolidated URP] > 0, DIVIDE ( 1, [CURP-Consolidated URP] ),
    //Condition No.4
    ISBLANK ( [CURP-Consolidated URP] )
        && ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.19
    [CURP-Consolidated URP] = 0
        && [URP-Unconstrained Requirement Plan] = 0
        && [SFRP- Submitted Final Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.6
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && ISBLANK ( [CURP-Consolidated URP] )
        && [URP-Unconstrained Requirement Plan] > 0, DIVIDE ( 1, [URP-Unconstrained Requirement Plan] ),
    //Condition No.7
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && ISBLANK ( [CURP-Consolidated URP] ), 0,
    //Condition No.8 & Condition No.9 
    ROUND (
        [URP-Unconstrained Requirement Plan],
        0
    )
        = ROUND ( [SFRP- Submitted Final Requirement Plan], 0 )
        && ROUND ( [SFRP- Submitted Final Requirement Plan], 0 )
            = ROUND ( [CURP-Consolidated URP], 0 ), 0,
    //Condition No.10 & Condition No.12
    [CURP-Consolidated URP] = 0
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [URP-Unconstrained Requirement Plan] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.11
    [URP-Unconstrained Requirement Plan] = 0
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [CURP-Consolidated URP] > 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], [CURP-Consolidated URP] ),
    //Condition No.13
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [CURP-Consolidated URP] = 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.14
    ISBLANK ( [CURP-Consolidated URP] )
        && [SFRP- Submitted Final Requirement Plan] > 0
        && [URP-Unconstrained Requirement Plan] = 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //Condition No.15 & Condition No.16 & Condition No.17
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && (
            [CURP-Consolidated URP] = 0
                || ISBLANK ( [CURP-Consolidated URP] )
        ), 0,
    //Condition No.18
    [SFRP- Submitted Final Requirement Plan] = 0, 0,
    //Default Condition
    DIVIDE (
        [SFRP- Submitted Final Requirement Plan],
        [CURP-Consolidated URP],
        0
    )
)

Para la medida:

Medida de Porcentajedesa
INTERRUPTOR (
    VERDADERO (),
    Condición No.1
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && SUM ( 'Datos'[CURP-Consolidated URP] ) > 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] )
    ),
    Condición No.2
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && SUM ( 'Data'[URP-Unconstrained Requirement Plan] ) > 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[Plan de requisitos sin restricciones URP] )
    ),
    Condición No.3
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && SUM ( 'Datos'[URP consolidado CURP] ) > 0, DIVIDE ( 1, SUM ( 'Data'[CURP-Consolidated URP] ) ),
    Condición No.4
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
        ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.19
    SUM ( 'Datos'[URP consolidado CURP] ) - 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] )
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.6
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
        ) á 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) > 0, DIVIDE ( 1, SUM ( 'Data'[URP-Unconstrained Requirement Plan] ) ),
    Condición No.7
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
        ) á 0
        && CALCULATE (
            COUNTROWS ( 'Datos' ),
            NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
        ) - 0, 0,
    Condición No.8 y Condición No.9 
    ROUND (
        SUM ( 'Datos'[Plan de requisitos sin restricciones URP] ),
        0
    )
        • ROUND ( SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ), 0 )
        && ROUND ( SUM ( 'Data'[SFRP- Submitted Final Requirement Plan] ), 0 )
            • ROUND ( SUM ( 'Datos'[URP consolidado CURP] ), 0 ), 0,
    Condición No.10 y Condición No.12
    SUM ( [CURP-Consolidated URP] ) - 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) > 0, DIVIDE ( SUM ( 'Data' [SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.11
    SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) - 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP consolidado CURP] ) > 0, DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] )
    ),
    Condición No.13
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Data'[URP-Unconstrained Requirement Plan] )
    ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP consolidado CURP] ) - 0, DIVIDE ( SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ), 100 ),
    Condición No.14
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
    ) á 0
        && SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) > 0
        && SUM ( 'Datos'[URP-Plan de requisitos sin restricciones] ) - 0, DIVIDE ( SUM ( 'Data'[SFRP- Submitted Final Requirement Plan] ), 100 ),
    Condición No.15 y Condición No.16 y Condición No.17
    CALCULAR (
        COUNTROWS ( 'Datos' ),
        NOT ( ISBLANK ( 'Datos'[SFRP- Plan de requisitos finales presentado] ) )
    ) á 0
        && (
            SUM ( 'Datos'[URP consolidado CURP] ) - 0
                || CALCULAR (
                    COUNTROWS ( 'Datos' ),
                    NOT ( ISBLANK ( 'Datos'[URP consolidado CURP] )
                ) á 0), 0,
    Condición No.18
    SUM ( 'Datos'[SFRP- Plan de requisitos finales presentados] ) - 0, 0,
    Condición predeterminada
    DIVIDE (
        SUM ( 'Datos'[SFRP- Plan de requisitos finales presentado] ),
        SUM ( 'Datos'[URP consolidado CURP] ),
        0 )
)


Saludos

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hola @v-lid-msft,
Gracias por su respuesta, quiero crear otra medida / columna para la diferencia (resaltado en azul), como se menciona a continuación.
puede sordrme en esto usando las mismas 18 condiciones.
8.PNG

saludos
Hari

Hola @v-miembro-msft,

¿Puede por favor ayudarme en los problemas de corrección anteriores en pocas condiciones

saludos

Día

Hola @harirao ,

Parece un nuevo requisito, le sugerimos que lo publique en un nuevo hilo, haría que otros sean más fáciles de centrarse en una pregunta en un solo hilo y beneficiará a otros miembros de la comunidad que se quedaron con el mismo requisito.


Saludos

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hola

Hola v-lid-msft,Se requiere su ayuda para calcular este DAX.

Gracias y saludos,

Día

Hola

Hola @harirao ,

Por favor, intente utilizar la siguiente fórmula:

Diffirent% Column =
SWITCH (
    TRUE (),
    //condition No. 1
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        && ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && ISBLANK ( [CURP-Consolidated URP] ), BLANK (),
    //condition No. 4
    ISBLANK ( [CURP-Consolidated URP] )
        && (
            ISBLANK ( [URP-Unconstrained Requirement Plan] )
                || [URP-Unconstrained Requirement Plan] = 0
        ), DIVIDE ( [SFRP- Submitted Final Requirement Plan], 1 ) / 100,
    //condition No. 5
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && ISBLANK ( [URP-Unconstrained Requirement Plan] ), DIVIDE ( 1, [CURP-Consolidated URP] ) / 100,
    //condition No. 6
    ISBLANK ( [SFRP- Submitted Final Requirement Plan] )
        && ISBLANK ( [CURP-Consolidated URP] ), DIVIDE ( 1, [URP-Unconstrained Requirement Plan] ) / 100,
    //condition No. 2
    ISBLANK ( [URP-Unconstrained Requirement Plan] )
        || [URP-Unconstrained Requirement Plan] = 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], [CURP-Consolidated URP] ) / 100,
    //condition No. 3
    ISBLANK ( [CURP-Consolidated URP] ), DIVIDE (
        [SFRP- Submitted Final Requirement Plan],
        [URP-Unconstrained Requirement Plan]
    ) / 100,
    //condition No. 7
    [URP-Unconstrained Requirement Plan] = [CURP-Consolidated URP]
        && [CURP-Consolidated URP] = [SFRP- Submitted Final Requirement Plan], 0,
    //condition No. 8
    [CURP-Consolidated URP] = 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //condition No. 9
    [CURP-Consolidated URP] = 0
        && [URP-Unconstrained Requirement Plan] = 0, DIVIDE ( [SFRP- Submitted Final Requirement Plan], 100 ),
    //condition No. 10
    [CURP-Consolidated URP] = 0
        && [URP-Unconstrained Requirement Plan] = 0
        && [SFRP- Submitted Final Requirement Plan] = 0, 0
)


Saludos

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hola

S.NoCURPUrpSFRPDiferencia %Dax para cada cálculo de nivel de fila
1 N/ASI las tres columnas están en blanco
2100 90(90/100)%SFRP/CURP. Cuando URP está en blanco
3 5090(90/50)%SFRP/URP. Cuando CURP está en blanco
4 90(90/1)%SFRP/1. Cuando CURP y URP están en blanco
5100 (1/100)%1/CURP. Cuando SFRP y URP están en blanco
6 50 (1/50)%1/URP. Cuando SFRP y CURP están en blanco
7100100100(100/100)% - 0%Debe ser 0% cuando todos tienen el mismo valor
801005050%Cuando CURP es 0 considere el valor SFRP como Porcentaje
9005050%Cuando CURP y URP son 0, considere el valor SFRP como Porcentaje
100000%Cuando CURP, URP y SFRP son 0, considere el valor como Porcentaje

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors