Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I am trying to create the following in power bi.
Current date. I have inventory on hand(starting balance)-requirements+po=ending balance
Next day. Previous days ending balance needs to be the starting balance. Then Starting balance-requirements+po=ending balance. I need this pattern. The current day works , but I am having trouble for the following date starting balance being previous day ending balance. How can I make this work. I am using a matrix table, with item in rows, date in columns, and inv,requirements,po in the value columns.
2024-01-16 | 2024-01-17 | 2024-01-18 | ||||||||||
Item | Inv Start Balance | Requirement | PO | Final Balance | Inv Start Balance | Requirement | PO | Final Balance | Inv Start Balance | Requirement | PO | Final Balance |
A | 100 | 20 | 50 | 130 | 130 | 40 | 10 | 100 | 100 | 90 | 10 | 20 |
B | ||||||||||||
C | ||||||||||||
D |
@Kevin454 , You need to create cumulative measures. Take the first inventory and rest need to build on
example
Inventory / OnHand
CALCULATE(firstnonblankvalue('Date'[Month],sum(Table[Intial Inventory])),all('Date'))
+ CALCULATE(SUM(Table[Ordered]),filter(all(date),date[date] <=maxx(date,date[date])))
- CALCULATE(SUM(Table[Sold]),filter(all(date),date[date] <=maxx(date,date[date])))
Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
50 | |
42 | |
40 |