cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors