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.
Hello fellows! I have little experiencie with DAX. I've been trying to create an expression to solve my problem.
I have a 3 tables.
Initial Stock (not linked with DateTable, because it is a snapshot of my current stock position)
Transit (linked with DateTable)
Demand (linked as well)
Final_Stock ( Initial Stock + Transit - Demand)
Here is where I'm stucked, what I've been trying to accomplish.
I have the initial stock and did the measure to give me the Final Stock for this month (Initial Stock + Transit - Demand) .
However, for the calculation for the next months, the initial stock to be considered should be the final stock from previous month.
The biggest problem I'm facing: If the final stock from previous month is negative, the next month should considere 0 as the initial stock and start over the process again.
What I did and is not working well.
Any help will be appretiated!!!
Thank you all.
Hi:
Something like:
=
no... it is repating the value across the months
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 |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |