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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Cómo encontrar los valores ponderados de la semana

Hola, chicos
Cómo implementar esta fórmula en Power BI
Precio actual de Week_1/Comp_1 Precio de Week_1 para todos los PMID ponderado por Historical_Volume para Week_1
Así que he escrito una lógica como esta, que no da ningún resultado, ya que la pregunta es semanal

(t_price_edit_cpi_history. Precio actual / t_price_edit_competitor_cpi_history. REGULAR_PRICE ) * t_price_edit_cpi_history. TOTAL_UNITS


Tengo columnas de semana, Currenprice, Comp_Price(Regular_price) y Volumen (Total_Units). Necesitamos calcular los valores de la semana... ¿Alguien podría ayudar en esto, por favor, y estoy adjuntando Excel aquí para datos de muestra que se implementan en Excel?

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Hola @Bajigntrr - cree una medida a continuación:

Weighted_Price_Ratio =
Volumen total del VAR =
CALCULAR(
SUMA(t_price_edit_cpi_history[TOTAL_UNITS]),
ALLEXCEPT(t_price_edit_cpi_history, t_price_edit_cpi_history[Semana])
)

Suma ponderada del VAR =
SUMX(
t_price_edit_cpi_history,
(t_price_edit_cpi_history[Precio actual] / t_price_edit_competitor_cpi_history[REGULAR_PRICE]) *
t_price_edit_cpi_history[TOTAL_UNITS]
)

DEVOLUCIÓN
DIVIDE(Suma ponderada, Volumen total, 0)

si es posible, cargue su archivo de Excel de muestra si necesita una solución más específica

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors