Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hey all,
here is my calculated column.
accumulated Stock =
calculate(
sumX('Goods logistics','Goods logistics'[Stock]),
FILTER(All('Goods logistics'),
And('Goods logistics'[Stock ID]=EARLIER('Goods logistics'[Stock ID]),
'Goods logistics'[Date]<=EARLIER('Goods logistics'[Date])
)))
It works fine until I have multiple outputs in a day. As an example, there are three outputs on August 13, 2022. The only correct thing here is the final score of -4. I wrote down the expected subtotals. Where is my misconception?
I calculated the 'stock' column in Power Query with 'Input' minus 'Output'.
Here is the sample:
Thank you for help.
Solved! Go to Solution.
@azaterol , try document number in place of date
accumulated Stock =
calculate(
sumX('Goods logistics','Goods logistics'[Stock]),
FILTER(All('Goods logistics'),
And('Goods logistics'[Stock ID]=EARLIER('Goods logistics'[Stock ID]),
'Goods logistics'[Document No]<=EARLIER('Goods logistics'[Document No])
)))
@azaterol , try document number in place of date
accumulated Stock =
calculate(
sumX('Goods logistics','Goods logistics'[Stock]),
FILTER(All('Goods logistics'),
And('Goods logistics'[Stock ID]=EARLIER('Goods logistics'[Stock ID]),
'Goods logistics'[Document No]<=EARLIER('Goods logistics'[Document No])
)))
@amitchandak Doc Nr is fine, works great. With creating an index in power query I get more success! Anyways thank you.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
85 | |
66 | |
52 | |
47 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |