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
Syndicate_Admin
Administrator
Administrator

Creación de una tabla a partir de otra tabla con filtros

Hola a todos

No soy un usuario profesional de Power Bi, pero tengo los conceptos básicos y he creado muchos informes. A continuación verá una tabla de origen: GoldList. Estoy tratando de crear una nueva tabla que sea un resumen de los clientes y su estado de actualización. Si todos los dispositivos para el cliente están completos o fuera del alcance, se consideran terminados. Cualquier otro estado los convertirá en No hechos.

¡Gracias y agradezco cualquier ayuda!

NathanKatsu_0-1697827514723.png

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@NathanKatsu ,

Puede probar el código como se muestra a continuación para crear una tabla calculada.

GoldListSummary =
SUMMARIZE (
    GoldList,
    GoldList[Customer],
    "Total Devices", CALCULATE ( COUNT ( GoldList[Device Name] ) ),
    "# Remaining",
        CALCULATE (
            COUNT ( GoldList[Device Name] ),
            NOT ( GoldList[Upgrade Status] IN { "Completed", "Out of Scope" } )
        ) + 0,
    "Done?",
        IF (
            CALCULATE (
                COUNT ( GoldList[Device Name] ),
                NOT ( GoldList[Upgrade Status] IN { "Completed", "Out of Scope" } )
            ) + 0 = 0,
            "Completed",
            "Not Done"
        )
)

vrzhoumsft_0-1698038464705.png

También puede crear un objeto visual de tabla con medidas.

Total Devices = CALCULATE(COUNT(GoldList[Customer]))
# Remaining = 
        CALCULATE (
            COUNT ( GoldList[Device Name] ),
            NOT ( GoldList[Upgrade Status] IN { "Completed", "Out of Scope" } )
        ) + 0
Done? = 
IF (
            [# Remaining] = 0,
            "Completed",
            "Not Done"
        )

El resultado es el siguiente.

vrzhoumsft_1-1698038842437.png

Saludos
Rico Zhou

Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Syndicate_Admin
Administrator
Administrator

@NathanKatsu ¿por qué necesitas una nueva mesa para esto?

¿No sería mejor crear medidas adecuadas?

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.