Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to calculate the stock on hand as follows:
[(Opening Balance + Bales Received) - Bales Sold].
I need to consider the opening balance from June 2023 and continue with the resulting value in the Stock on Hand column. I only have one value for the opening balance from then onwards; after every month's transaction, I need to know how much stock we have left on hand
Bales Received is a measure = SUM(Bales Received ) and Bales Sold as well, from multiple tables. Thanks.
Solved! Go to Solution.
Hi,
Please review/study my solution to a similar problem in the attached files and apply the measures/techniques to your dataset.
Hope this helps.
Hi,
Please review/study my solution to a similar problem in the attached files and apply the measures/techniques to your dataset.
Hope this helps.
Hi @amitchandak
I have to consider the given Opening balance (56,192 )from June 2023 on monthly Basis. Thank you
@heygau , seem like Inventory problem, here we will prefer to use Cumulative measure
Inventory / OnHand BOP=
CALCULATE(firstnonblankvalue('Date'[Month]),sum(Table[Intial Inventory]),all('Date')) +
CALCULATE(SUM(Table[Ordered]),filter(all(date),date[date] <min(date[date]))) -
CALCULATE(SUM(Table[Sold]),filter(all(date),date[date] <min(date[date])))
Inventory / OnHand EOP=
CALCULATE(firstnonblankvalue('Date'[Month]),sum(Table[Intial Inventory]),all('Date')) +
CALCULATE(SUM(Table[Ordered]),filter(all(date),date[date] <=max(date[date]))) -
CALCULATE(SUM(Table[Sold]),filter(all(date),date[date] <=max(date[date])))
or
Inventory / OnHand =
CALCULATE(firstnonblankvalue('Date'[Month]),sum(Table[Intial Inventory]),filter(all(date),date[date] <min(date[date]))) +
CALCULATE(SUM(Table[Ordered]),filter(all(date),date[date] <=max(date[date]))) -
CALCULATE(SUM(Table[Sold]),filter(all(date),date[date] <=max(date[date])))
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
45 |