cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors