Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Already thank you all very much for reading this message and helping the less experienced.
I have a table that has date, material, plant, Inventory, Inputs and Outputs. The inventory for the first day is correct, but for the following days it is wrong and I would like to make a new column that calculates the inventory by adding the inventory of the previous day, plus the entries of the previous day minus the departures of the previous day. Is it possible to do this in Power BI? I leave a picture of how I would solve it in Excel, but I don't know if something similar can be solved in PBI.
Thanks a lot!
Hi @Syndicate_Admin ,
Would you be able to provide some more detailed descriptions so that I can answer your questions as soon as possible?
Looking forward to your reply.
Best Regards,
Henry
What I would like is to be able to replicate the calculation of the image of the "Inventory" column, that is, for the first day I have information, I leave the "Stock" column, but for the following days I calculate the inventory as the sum of the inventory of the previous day plus the entries of the previous day minus the outputs of the previous day (that also considering that in the table I have several materials and plants).
Thank you very much for the answer
I was finally able to figure it out. It may not be the best way, but it does work. In case anyone needs something similar, I leave the steps and share the sample file.
Steps to follow (I hope I don't forget any important ones):
1. Create a Calendar table, taking the dates of the table you want to treat
2. To the calendar table, add two new columns:
Rank = RANK. EQ([Date],Calendar[Date],ASC)
3. In the table where we have the data, we will create new columns for the intermediate inventories, being the last column created the one that will have the 'real' inventory.
The formula for these inventories is:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
71 | |
68 | |
50 | |
30 |
User | Count |
---|---|
119 | |
101 | |
73 | |
65 | |
40 |