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
NilR
Post Patron
Post Patron

Cómo crear una columna de clasificación con varias condiciones

Tengo la tabla siguiente en Power Bi y me gustaría agregar una columna calculada basada en dos columnas, pero la clasificación sin empate en orden de combinación inferior. por ejemplo:

ORDEN/RANKING - SI [OBJETIVO MÁXIMO) > 0% Y [TAG]''FALSE' ENTONCES [RECUENTO DISTINTO]
SI [OBJETIVO MÁXIMO) > 0% Y [TAG]'TRUE' ENTONCES [DISTINCT COUNT]
SI [[TAG] 'FALSE' ENTONCES [DISTINCT COUNT]
SI [TAG]'TRUE' ENTONCES [DISTINCT COUNT]

Aquí está mi muestra de tabla con el resultado deseado:

OrdenNúmero de empresaNombre de la empresaNombre del objetivoMáximo OBJETIVODía
11001NOMBRE DE LA EMPRESA 1OBJETIVO 125%Falso
21001NOMBRE DE LA EMPRESA 1OBJETIVO 281%Falso
31001NOMBRE DE LA EMPRESA 1OBJETIVO 340%Falso
41001NOMBRE DE LA EMPRESA 1OBJETIVO 426%Verdad
51001NOMBRE DE LA EMPRESA 1OBJETIVO 50%Falso
61001NOMBRE DE LA EMPRESA 1OBJETIVO 60%Verdad
11002NOMBRE DE LA EMPRESA 2OBJETIVO 126%Falso
21002NOMBRE DE LA EMPRESA 2OBJETIVO 266%Falso
31002NOMBRE DE LA EMPRESA 2OBJETIVO 340%Falso
41002NOMBRE DE LA EMPRESA 2OBJETIVO 468%Verdad
51002NOMBRE DE LA EMPRESA 2OBJETIVO 50%Falso
61002NOMBRE DE LA EMPRESA 2OBJETIVO 60%Falso

Aquí está también el código de ejemplo que probé, sin embargo no sé cómo encontrar otros criterios:

RANKX (
    FILTER (
        GroupGoalMapping,
        GroupGoalMapping[Company-] - EARLIER ( GroupGoalMapping[Company -]
    ) ),
    GroupGoalMapping[Goal_MAX],
    ,
    DESC,
    DENSE
)

0 REPLIES 0

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.