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
Anonymous
Not applicable

Ayuda en La Fórmula

Hola

Estoy usando esta siguiente fórmula, pero está mostrando error.

Scorecard 2 á CALCULATE([Scorecard],IF(NOT('Sheet1'[Capability & offer] ? BLANK() && NOT(Sheet1[Overall Performance] ? BLANK() && NOT(Sheet1[Delivering with integrity] ? BLANK() && NOT(Sheet1[Comunicarse eficazmente] á BLANK() && NOT(Sheet1[Demostrar comportamientos correctos] á BLANK() && NOT(Sheet1[Knowing expectations] ? BLANK() && NOT(Sheet1[Health, safety & wellbeing] ?BLANK() && NOT(Sheet1[Resolving issues] )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))""Nos) ,0))
tarjeta de puntuación ?
(PROMEDIO(Sheet1[Capacidad y oferta])+PROMEDIO(Sheet1[Comunicarse eficazmente])+PROMEDIO(Sheet1[Delivering with integrity])+AVERAGE(Sheet1[Demonstrating right behaviours])+AVERAGE(Sheet1[Health, safety & wellbeing])+AVERAGE(Sheet1[Knowing expectations])+AVERAGE(Sheet1[Overall Performance]))/7

Así que básicamente el problema que estoy enfrentando es - Tengo 7 columnas de las que estoy calculando el cuadro de mandos (añadiendo el promedio de esas columnas y luego dividir por 7). Obtengo el resultado deseado. Pero hay alguna discrepancia en mis datos, como todas las 7 columnas no contienen un valor, por ejemplo, 3 de 7 columnas pueden tener un valor y otros 4 pueden no por esto por promedio resultado sale a ser incorrecto.

Si puedo escribir una fórmula, si alguna columna está en blanco no calcule la fila del valor del cuadro de mandos. Veo datos anualmente por lo que tenemos que escribir medida para ello, haciendo una nueva columna no funcionará.

Por favor, hágamelo saber para abordar este problema.

gracias de antemano

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hola @SushantSharma ,

Por favor, intente utilizar la siguiente medida:

Scorecard 2 =
VAR A =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Capability & offer] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Capability & offer] ) ) )
    )
VAR B =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Overall Performance] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Overall Performance] ) ) )
    )
VAR C =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Delivering with integrity] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Delivering with integrity] ) ) )
    )
VAR D =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Communicating effectively] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Communicating effectively] ) ) )
    )
VAR E =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Demonstrating right behaviours] ),
        FILTER (
            'Sheet1',
            NOT ( ISBLANK ( 'Sheet1'[Demonstrating right behaviours] ) )
        )
    )
VAR F =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Knowing expectations] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Knowing expectations] ) ) )
    )
VAR G =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Health, safety & wellbeing] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Health, safety & wellbeing] ) ) )
    )
RETURN
     ( A + B + C + D + E + F + G ) / 7

Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Saludos

Dedmon Dai

View solution in original post

7 REPLIES 7
v-deddai1-msft
Community Support
Community Support

Hola @SushantSharma ,

Por favor, intente utilizar la siguiente medida:

Scorecard 2 =
VAR A =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Capability & offer] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Capability & offer] ) ) )
    )
VAR B =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Overall Performance] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Overall Performance] ) ) )
    )
VAR C =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Delivering with integrity] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Delivering with integrity] ) ) )
    )
VAR D =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Communicating effectively] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Communicating effectively] ) ) )
    )
VAR E =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Demonstrating right behaviours] ),
        FILTER (
            'Sheet1',
            NOT ( ISBLANK ( 'Sheet1'[Demonstrating right behaviours] ) )
        )
    )
VAR F =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Knowing expectations] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Knowing expectations] ) ) )
    )
VAR G =
    CALCULATE (
        AVERAGE ( 'Sheet1'[Health, safety & wellbeing] ),
        FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Health, safety & wellbeing] ) ) )
    )
RETURN
     ( A + B + C + D + E + F + G ) / 7

Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Saludos

Dedmon Dai

PaulDBrown
Community Champion
Community Champion

@SushantSharma

¿Estás totalmente seguro de que deberías estar agregando promedios? (Fuera de mi cabeza...)

como @Ashish_Mathur estados, parece que necesita pensar en la estructura de datos en el modelo.

proporcione un conjunto de datos de muestra o un archivo PBIX para ayudarnos a ayudarle a





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Ashish_Mathur
Super User
Super User

Hola

Observando su fórmula, parece que sus datos necesitan reestructuración. Comparta el conjunto de datos de origen, explique el contexto empresarial y muestre el resultado esperado.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@SushantSharma , creo que con el espacio en blanco que tiene el uso o isblank([columna])

CALCULATE([Scorecard],IF(NOT('Sheet1'[Capability & offer] á BLANK() && NOT(Sheet1[Overall Performance] á BLANK() && NOT(Sheet1[Delivering with integrity] á BLANK() && NOT(Sheet1[Communicating effectively] ? BLANK() && NOT(Sheet1[Demostrar comportamientos correctos] á BLANK() && NOT(Sheet1[Knowing expectations] ? BLANK() && NOT(Sheet1[Salud, seguridad y bienestar] -BLANK() && NOT(Sheet1[Resolver problemas] ?BLANK())))))))))))))))) ,0))

Anonymous
Not applicable

@amitchandak esto es un error que estoy recibiendo después de su fórmula.

La expresión contiene varias columnas, pero solo se puede utilizar una sola columna en una expresión True/False que se utiliza como expresión de filtro de tabla.

Greg_Deckler
Super User
Super User

@SushantSharma ¿Cuál es su error? ¿Puede publicar datos de muestra? Usar daxformatter.com

Scorecard 2 =
CALCULATE (
    [Scorecard],
    IF (
        NOT (
            'Sheet1'[Capability & offer] = BLANK ()
                && NOT (
                    Sheet1[Overall Performance] = BLANK ()
                        && NOT (
                            Sheet1[Delivering with integrity] = BLANK ()
                                && NOT (
                                    Sheet1[Communicating effectively] = BLANK ()
                                        && NOT (
                                            Sheet1[Demonstrating right behaviours] = BLANK ()
                                                && NOT (
                                                    Sheet1[Knowing expectations] = BLANK ()
                                                        && NOT (
                                                            Sheet1[Health, safety & wellbeing] = BLANK ()
                                                                && NOT ( Sheet1[Resolving issues] = BLANK () )
                                                        )
                                                )
                                        )
                                )
                        )
                )
        ),
        0
    )
)





scorecard =
(
    AVERAGE ( Sheet1[Capability & offer] )
        + AVERAGE ( Sheet1[Communicating effectively] )
        + AVERAGE ( Sheet1[Delivering with integrity] )
        + AVERAGE ( Sheet1[Demonstrating right behaviours] )
        + AVERAGE ( Sheet1[Health, safety & wellbeing] )
        + AVERAGE ( Sheet1[Knowing expectations] )
        + AVERAGE ( Sheet1[Overall Performance] )
) / 7

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hola

Gracias por su solución, pero no está funcionando.

su está dando este error- La expresión contiene varias columnas, pero solo se puede usar una sola columna en una expresión True/False que se utiliza como expresión de filtro de tabla.

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.