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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ErnestoSanchez
Frequent Visitor

Promedio de ovs Promedios

Hola a todos,

Gracias por tomarse su tiempo para ayudarme.

Tengo dos gráficos de columnas agrupadas

En el primero muestro valores absolutos (80, 54, 198, etc.)

En el segundo muestro valores relativos relacionados con el primer gráfico (83,84%, 67,50%)

Todo el comportamiento es controlado por algunas segmentaciones de datos, donde los usuarios pueden seleccionar dependiendo de sus necesidades.

Necesito un elemento más.

Una tarjeta donde quiero mostrar el PROMEDIO de los PROMEDIOS que se muestran en el segundo gráfico.

Mira la imagen.

ErnestoSanchez_0-1594839512642.pngPROMEDIO DE PROMEDIOS . Archivo PBIX

6 REPLIES 6
v-shex-msft
Community Support
Community Support

Hola @ErnestoSanchez,

Puede crear una medida con tabla de variables para fijar el resultado calculado del primer cálculo agregado y, a continuación, puede utilizar la función de iterador en esta tabla para aplicar el segundo modo agregado.

Muestra:

measure =
VAR summary =
    SUMMARIZE (
        ALLSELECTED ( Table ),
        [Category],
        "AVG", AVERAGE ( Table[Amount] )
    )
RETURN
    AVERAGEX ( summary, [AVG] )

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Gracias @v-shex-msft ,

He estado tratando de averiguar qué quieres decir con tu solución,

Pero no pude concretarlo en mi archivo .pbix para obtener los resultados correctos.

Permítame pedirle que me dé más detalles.

Gracias..

Hola @ErnestoSanchez,

Puede intentar utilizar las siguientes fórmulas de medida si cumple con sus requisitos:

Graduados% based on selection = 
VAR summary =
    SUMMARIZE (
        ALLSELECTED ( Consolidado ),
        [SEXO],
        [PAIS],
        [FINANCIADOR],
        [SOCIO],
        [SEDE],
        [NÚMERO DE PROMOCIÓN],
        "Percent", DIVIDE (
            CALCULATE (
                SUM ( Consolidado[INSCRITOS] ),
                Consolidado[INDICADORES] = "Jóvenes inscritos que se graduan"
            ),
            CALCULATE (
                SUM ( Consolidado[soTOTAL] ),
                Consolidado[INDICADORES] = "Jóvenes inscritos que se graduan"
            ),
            BLANK ()
        )
    )
RETURN
    AVERAGEX ( summary, [Percent] )

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Gracias por tu effor @v-shex-msft

Tomando su solución, cada categoría (sexo, pais, financiador, socio, sede, numero) funciona bien si en la medida sólo los hay.

Cuando armo todo junto, como usted tiene en su solución, el resultado comienza a ser incorrecto.

Gracias de nuevo.

ErnestoSanchez_0-1595279158696.png

parry2k
Super User
Super User

@ErnestoSanchez probar esta medida

Measure = AVERAGEX( VALUES ( Consolidado[PAIS] ),  [GraduadosSIPrograma%] )

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Gracias @parry2k .

Como pueden ver, estoy usando una Jerarquía (sexo, padres, financista, socio, sede, número de promoción) y un taladro.

Su solución funciona bien cuando tengo el taladro en [PAIS],

Pero, cuando cambio la selección... Deja de funcionar bien. Me muestra un mal resultado.

¿Alguna idea...??

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors