Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Jakob_PBI
Frequent Visitor

data model for forecast, inbound supply and stock level + date table

Hi,

 

I need advice on how i can struture and combine my 3 tables + a date table.

 

I have these 3 tables:
Future_Inbound: shows incoming supply of new products

Forecast: shows forecasted demand in quantity of products

Stock_level: shows current stock level of products

 

Then i have a dax calculated date table.

 

How would you combine these three tables? Currently i am using a concatenated key between future inbound and forecast, which is: "Country - Product - Date" and then i create a many-to-many relation between inbound and forecast and then i join date to the datetable. But it just feels like the wrong approach.

 

how would you do it? 

 

Jakob_PBI_0-1682078889642.png

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Do not join your fact tables directly. Use dimension tables (like the calendar, and a customer list) to control the fact tables.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Do not join your fact tables directly. Use dimension tables (like the calendar, and a customer list) to control the fact tables.

thanks i figured out to do this, maybe i can ask you another question =D

i asked the question here:
https://community.powerbi.com/t5/Desktop/Calculating-stock-level-value-from-last-month-new-demand/m-...

the new data model is like this for the sample:

Jakob_PBI_0-1682680952446.png

 

The filter direction should be single, from the time dimension to the fact tables.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors