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.
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?
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |