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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Syndicate_Admin
Administrator
Administrator

Dependencia de Collumn y movimiento y gestión de existencias

Hola a todos,

Estoy trabajando en una gestión de stock y quierovalorar el stock final.

Así que tengo columnas llamadas "stock final", "entrada", "salidas".

Quiero evaluar "stock final" que es "stock final" anterior + misma "entrada" - mismas "salidas".

¿Es posible hacerlo en un "stock final"?

MohTerki_0-1685526302541.png

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Funcionó gracias,

Solo necesitas eliminar Max

@johnt75

MohTerki_0-1685533563496.png

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Funcionó gracias,

Solo necesitas eliminar Max

@johnt75

MohTerki_0-1685533563496.png

Syndicate_Admin
Administrator
Administrator

Puede crear una medida como

Final stock =
VAR CurrentDate =
    MAX ( 'Date'[Date] )
VAR Result =
    CALCULATE (
        SUM ( 'Table'[Entry] ) - SUM ( 'Table'[Outings] ),
        'Date'[Date] <= CurrentDate
    )
RETURN
    Result

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors