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

¿Promedio ponderado de las medidas?

Soy incapaz de obtener un promedio ponderado adecuado. Tengo datos de ingresos... La forma en que trato de hacerlo:

RevExclu =
CALCULATE ( SUM (
    Revenue[Revenue] ),
    FILTER ( 'Sectors', NOT 'Sectors'[Sec] IN { "xyz", BLANK () } )
)

(Tengo que excluir algunos ingresos)

Entonces consigo el total por UP:

TotalPerUP =
SUMX ( SUMMARIZE ( Ingresos, 'Cliente'[UP] ), [RevExclu] )

Entonces consigo el max Sec por ARRIBA. (no importa qué Sec, pero el valor de la suma de ingresos).

MaxSecPerUP =
MAXX ( SUMMARIZE ( Ingresos, 'Cliente'[UP], 'Sectores'[Seg] ), [RevExclu] )

Entonces consigo el métrico cuál es total/max:

MetricUp =
DIVIDE ( [TotalPerUP], [MaxSecPerUP], EN BLANCO () )

Entonces; Tendría que ir un nivel arriba y hacer el el weigthed promedio de este métrico... Debe ser SUM( métrica x tamaño) / Total

El nivel superior es Lead (cada Lead tiene muchos UPs)

Tengo el total:

TotalPerLead =
SUMX ( SUMMARIZE ( Ingresos, 'Lead'[Lead] ), [RevExclu] )

Ahora necesito ir cada UP por UP y hacer (Metric x Size) (y luego hacer una SUMA de todo eso ...)

Es decir, ir arriba por arriba y hacer [TotalPerUP]*[MetricUp]


(Solo lo he logrado usando ALLEXCEPT, pero preferiría no usarlo ya que elimina mis filtros...) ¿Cómo puedo hacerlo?

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

No @ovonel ,

¿Podría mostrarnos el archivo pbix de muestra? No estoy obteniendo claridad de su descripción sin datos de muestra.

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

Saludos

Dedmon Dai

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.