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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

2 Fact tables

Hi All

 

Can anyone help me to figure out how to deal with 2 Fact tables, one being "actuals", and the other one being "forecast". Both tables I can link via Material+period, but for the forecast I realized that I have different versions of it, so F1, F2, F3... So when I merge those tables, my actuals are added to all lines which is linked to different forecast versions, but in reality I want to compare the actuals with only 1 version. Any solution someone here can propose?

Exemple: Material 123456 in Jan/2022

Forecast 1 = 50       Actuals: 50

Forecast 2 = 55

Forecast 3 = 45

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Anonymous,

 

It's best to keep fact tables separate instead of merging them. Each fact table should have relationships with dimension tables, resulting in a star schema. Typically, actuals has day grain and forecast has monthly grain. If this is the case with your data, create a calculated column in the forecast table that is a date (use the first day of the month). This will enable you to create a relationship between the forecast table and date table.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@Anonymous,

 

It's best to keep fact tables separate instead of merging them. Each fact table should have relationships with dimension tables, resulting in a star schema. Typically, actuals has day grain and forecast has monthly grain. If this is the case with your data, create a calculated column in the forecast table that is a date (use the first day of the month). This will enable you to create a relationship between the forecast table and date table.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.