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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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