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
Syndicate_Admin
Administrator
Administrator

Sustracción incental

Hola a todos,

Actualmente tengo esta vista en Power BI

Documento de ventasMaterialCantidad pedidaStock.Cantidad disponibleStock restante
2744570105980561533115275
2793574105980561533115275
2744571105980561533115275
2793575105980561533115275

Pero quiero tener este punto de vista

Documento de ventasMaterialCantidad pedidaStock.Cantidad disponibleStock restante
2744570105980561533115275
2793574105980561527515219
2744571105980561521915163
2793575105980561516315107

¿Cómo puedo hacerlo y también tengo muchos materiales, así que para cada material tengo que hacerlo?

Daré un ejemplo de los diferentes materiales que tengo

Documento de ventasMaterialCantidad pedidaStock.Cantidad disponible
27445701059805615331
27935741059805615331
27445711059805615331
27935751059805615331
2787998105644613
2792122105644613
2793918105644613
278685952222724548
278686052222724548
278686152222724548
278458672632614109
27932115551531186
27968895551531186
27968715551531186
27964925551531186
27965805551531186
27969185551531186
27968905551531

186

Por favor, ayúdame con esto.

BR

Yashh Gaikwad

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@Yashh

Los pls intentan crear una columna de índice y crear dos columnas calculadas

stock available = 
VAR _index = CALCULATE(min([Index]),ALLEXCEPT('Table','Table'[Material]))
return [Stock.Available Quantity]-sumx(FILTER('Table','Table'[Material]=EARLIER('Table'[Material])&&[Index]<=EARLIER('Table'[Index])&&'Table'[Index]>_index),'Table'[Ordered Quantity])



remaining stock = [Stock.Available Quantity]-sumx(FILTER('Table','Table'[Material]=EARLIER('Table'[Material])&&[Index]<=EARLIER('Table'[Index])),'Table'[Ordered Quantity])

1.PNG

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.