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

Crear una medida NPS filtrando una columna

Primero me dieron esta fórmula de medida para crear mi puntaje NPS, sin embargo, mi puntaje NPS está en la columna Respuesta y NPS es solo una de las tres preguntas que se hicieron. Hay otras dos preguntas en esa columna, es decir, Soporte, NPS, Productos. ¿Cómo uso esta fórmula al filtrar la columna Pregunta para NPS? Si la fórmula NPS pudiera ser mejor, estoy abierto a sugerencias, soy un principiante con Medidas.

jyoung_auto61_0-1679616532487.png

jyoung_auto61_1-1679616543389.png

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@jyoung_auto61 ,

En su código, no creo que se use la parte pasiva del valor var.

Medida de actualización:

NPS Score =
VAR detractors =
    CALCULATE (
        COUNTROWS ( 'Your Table' ),
        FILTER (
            'Your Table',
            'Your Table'[Question] = "NPS"
                && 'Your Table'[Answer] <= 6
        )
    )
VAR promoters =
    CALCULATE (
        COUNTROWS ( 'Your Table' ),
        FILTER (
            'Your Table',
            'Your Table'[Question] = "NPS"
                && 'Your Table'[Answer] >= 9
        )
    )
VAR total =
    COUNTROWS ( 'Your Table' )
VAR score =
    ( DIVIDE ( promoters, total ) * 100 )
        - ( DIVIDE ( detractors, total ) * 100 )
RETURN
    IF ( ISBLANK ( score ), 0, score )

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.

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.