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
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
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.

Top Solution Authors