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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Dvilches_
Frequent Visitor

Sell out average

Hola,

 

Ojalá me puedan ayudar. Soy nuevo en Power BI.  Configuré relaciones entre tablas, entre ellas la tabla "WEEKS" y la tabla " Sellout Qty"

 

Tabla WEEKS               Tabla Sellout

WK     MTH                           WK           STORE_ID        SKU    QTY

WK14                                    WK14        11111111       9999     5

WK15                                    WK15        22222222       8888     7

WK16                                    WK16        33333333       7777     1

....                                          ....

 

Mi Pivot está confeccionada de tal manera que tengo en las columnas el MTH, las WEEKS y enseguida los valores.

Quedando una vista así

 

                        APR

SKU    WK14    WK15    WK16

9999       1          2           3

8888       1          2           3

9999       1          2           3

 

Ahora, con un campo calculado con power pivot cree la siguiente función que me suma segúnlas últimas 4 semanas desde que creo el reporte:

=CALCULATE(SELL_OUT[Sum of SELLOUT_QTY];SELL_OUT[WEEK]="WK"&(WEEKNUM(TODAY())-1) || SELL_OUT[WEEK]="WK"&(WEEKNUM(TODAY())-2) || SELL_OUT[WEEK]="WK"&(WEEKNUM(TODAY())-3) || SELL_OUT[WEEK]="WK"&(WEEKNUM(TODAY())-4))

 

Si bien está sumando correctamente, la forma en que lo estoy mostrando básicamente me está replicando la misma data que la del sell out en esas semanas. Me ayudan por fa?

 

Además de sumarlas me gustaría sacar su promedio.

 

1 REPLY 1
Alegc
New Member

Hola, lo pudiste solucionar? 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.