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.
Hey there
i currently struggle with a specific problem: I have two different tables in a bigger datamodel which are connected via 1:n relationshiop. One table contains inventory data per site for different materials. The other contains forecast values. So the inventory table only has values for past and current period. The other has past, current and future. Now iw ant to create a measure or calculated column which displays values from the inventory data up to the current period and rolls forward or duplicates the most recent values into future periods. I need this for other calculations with the future periods from forecasts and other tables.
I attached a example file with a reduced version of the data model and also the screenshot below so you can understand the idea:
It wont let me attach the .pbix file directly into this post - sorry.
ForecastDeliveries is from Table "Forecasts" (includes future periods) and "Summe von Amount" is from the "Inventory" table (includes only past and current periods. The calculated column or measure should behave like "Summe von Amount" but including the forward duplication of the most recent values for each combination of Period, Site and Material (green). The combination of Period_SiteID_MaterialID is also the Key which connects both tables (eg. 202312_200_100).
In my original datamodel i tried so many solutions but the values for future periods always stays blank. Hope somebody can help. Thanks in advance and kind regards.
Solved! Go to Solution.
Try the below measure ... seems to work.
Try the below measure ... seems to work.
Thank you, that worked! I just changed " 'Inventory'[Period] <_currentPeriod &&" to " 'Inventory'[Period] =<_currentPeriod &&" because otherwise it would always display the values from one period before, even when looking at past periods.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |