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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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